SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 17/05/2017, 05:30 PM   #1591
CharlieSanchez
Big Clucker
 
CharlieSanchez's Avatar
 
Join Date: Feb 2014
Location: Inside a HDD
Posts: 176
Reputation: 36
Default Re: YSF - kurta999's version

Well for future reference to other people.

If you wish to use the function:
Code:
TogglePlayerWidescreen(playerid, true);
Its advised that you have enabled Widescreen on your game settings otherwise it can create some strange black bars on screen, also it will block Key ESC and V for camera zoom.

Other than that it works and its sad that not possible to fix that issue, i quite want to use this function really bad

PS: Suggestion, would be awesome if you where able to manipulate the radar and hud individual or both, might not be possible to find the memory addresses, not sure as I'm not good with that kind of thing but it would be a great function and quite useful !

Thanks Kurta!
__________________

CharlieSanchez is offline   Reply With Quote
Old 17/05/2017, 07:16 PM   #1592
Spmn
Gangsta
 
Join Date: Jun 2015
Location: Romania
Posts: 530
Reputation: 126
Default Re: YSF - kurta999's version

Quote:
Originally Posted by CharlieSanchez View Post
PS: Suggestion, would be awesome if you where able to manipulate the radar and hud individual or both, might not be possible to find the memory addresses, not sure as I'm not good with that kind of thing but it would be a great function and quite useful !
Not possible with a server-only modification like YSF.
Use SAMP+ instead. Note that players must install SAMP+ client.
Spmn is offline   Reply With Quote
Old 26/05/2017, 04:51 PM   #1593
DimaShift
Banned
 
Join Date: May 2017
Location: Republic of Moldova
Posts: 123
Reputation: 43
Default Re: YSF - kurta999's version

It's possible in the next version to add
native GetPlayerFPS(playerid);

stock GetPlayerFPS(playerid)
{
SetPVarInt(playerid, "DrunkL", GetPlayerDrunkLevel(playerid));
if(GetPVarInt(playerid, "DrunkL") < 100)
{
SetPlayerDrunkLevel(playerid, 2000);
}
else
{
if(GetPVarInt(playerid, "LDrunkL") != GetPVarInt(playerid, "DrunkL"))
{
SetPVarInt(playerid, "FPS", (GetPVarInt(playerid, "LDrunkL") - GetPVarInt(playerid, "DrunkL")));
SetPVarInt(playerid, "LDrunkL", GetPVarInt(playerid, "DrunkL"));
if((GetPVarInt(playerid, "FPS") > 0) && (GetPVarInt(playerid, "FPS") < 256))
{
return GetPVarInt(playerid, "FPS") - 1;
}
}
}
return 0;
}
DimaShift is offline   Reply With Quote
Old 26/05/2017, 08:36 PM   #1594
DRIFT_HUNTER
High-roller
 
Join Date: Oct 2009
Posts: 2,146
Reputation: 157
Default Re: YSF - kurta999's version

Quote:
Originally Posted by DimaShift View Post
It's possible in the next version to add
native GetPlayerFPS(playerid);

stock GetPlayerFPS(playerid)
{
SetPVarInt(playerid, "DrunkL", GetPlayerDrunkLevel(playerid));
if(GetPVarInt(playerid, "DrunkL") < 100)
{
SetPlayerDrunkLevel(playerid, 2000);
}
else
{
if(GetPVarInt(playerid, "LDrunkL") != GetPVarInt(playerid, "DrunkL"))
{
SetPVarInt(playerid, "FPS", (GetPVarInt(playerid, "LDrunkL") - GetPVarInt(playerid, "DrunkL")));
SetPVarInt(playerid, "LDrunkL", GetPVarInt(playerid, "DrunkL"));
if((GetPVarInt(playerid, "FPS") > 0) && (GetPVarInt(playerid, "FPS") < 256))
{
return GetPVarInt(playerid, "FPS") - 1;
}
}
}
return 0;
}
Why? Its already possible in pawn...
__________________
Путин here,
Путин there,
Путин просто everywhere.


Any PM's that include question about any kind of help will be ignored.
Use appropriate boards for that
DRIFT_HUNTER is offline   Reply With Quote
Old 03/06/2017, 05:39 PM   #1595
AbyssMorgan
Banned
 
Join Date: Apr 2015
Location: Poland
Posts: 1,260
Reputation: 326
Default Re: YSF - kurta999's version

This functions not working:
SetVehicleParamsSirenState
ToggleVehicleSirenEnabled
AbyssMorgan is offline   Reply With Quote
Old 06/06/2017, 09:16 AM   #1596
Salik
Big Clucker
 
Salik's Avatar
 
Join Date: Aug 2015
Location: Russia
Posts: 80
Reputation: 0
Default Re: YSF - kurta999's version

Can you add the playerid parameter for TextDrawSetPos, it is simply redirected for each.
Salik is offline   Reply With Quote
Old 06/06/2017, 09:23 AM   #1597
kurta999
High-roller
 
kurta999's Avatar
 
Join Date: Apr 2009
Location: Slovakia (HU)
Posts: 1,423
Reputation: 626
Default Re: YSF - kurta999's version

Use per player textdraws, it would be totaly mess if i add that.

AbyssMorgan: try to stream out the vehicle
kurta999 is offline   Reply With Quote
Old 06/06/2017, 01:45 PM   #1598
Salik
Big Clucker
 
Salik's Avatar
 
Join Date: Aug 2015
Location: Russia
Posts: 80
Reputation: 0
Default Re: YSF - kurta999's version

I think there will not be a mess, anyone who wants that will use the function, you can add a parameter as non-mandatory - (-1 For all) - (PlayerID for a particular player).
Salik is offline   Reply With Quote
Old 10/06/2017, 06:36 AM   #1599
Scottas
Huge Clucker
 
Scottas's Avatar
 
Join Date: Jul 2010
Location: Lithuania
Posts: 349
Reputation: 24
Default Re: YSF - kurta999's version

There are SetDisabledKeys and GetDisabledKeys functions. Maybe fake player key press is also possible? So it would be possible to tell player to enter vehicle or do any other action from server.
Scottas is offline   Reply With Quote
Old 12/06/2017, 01:59 PM   #1600
iLearner
Gangsta
 
iLearner's Avatar
 
Join Date: Apr 2017
Posts: 539
Reputation: 113
Default Re: YSF - kurta999's version

https://usercontent.irccloud-cdn.com...CrLL/image.png

My server crashed after round about 1 hour, after i started using YSF.

Any idea?
iLearner is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[GameMode] [GM] - [RnD] Street Racers `N Drifters (New Version - latest version) Johny_Rocker Gamemode Scripts 23 10/12/2015 09:53 AM
How to convert server files from 0.3e version into 0.3c version Sajed Scripting Help 2 29/10/2013 07:48 PM
[FilterScript] [FS]New LSPD - Version 0.3 - Bugfix Version Dalenor Filterscripts 46 08/12/2010 01:36 PM
about changing version of sa-mp but with old script version Sfinx_17 Help Archive 3 22/10/2009 12:05 PM


All times are GMT. The time now is 01:37 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.