SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 17/05/2017, 07:16 PM   #1601
Spmn
Huge Clucker
 
Join Date: Jun 2015
Location: Romania
Posts: 489
Reputation: 93
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   #1602
DimaShift
Big Clucker
 
DimaShift's Avatar
 
Join Date: May 2017
Location: Republic of Moldova
Posts: 56
Reputation: 5
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 online now   Reply With Quote
Old 26/05/2017, 08:36 PM   #1603
DRIFT_HUNTER
High-roller
 
Join Date: Oct 2009
Posts: 2,104
Reputation: 130
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   #1604
AbyssMorgan
High-roller
 
AbyssMorgan's Avatar
 
Join Date: Apr 2015
Location: Poland
Posts: 1,151
Reputation: 251
Default Re: YSF - kurta999's version

This functions not working:
SetVehicleParamsSirenState
ToggleVehicleSirenEnabled
AbyssMorgan is online now   Reply With Quote
Old 06/06/2017, 09:16 AM   #1605
Salik
Big Clucker
 
Salik's Avatar
 
Join Date: Aug 2015
Location: Russia
Posts: 64
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   #1606
kurta999
High-roller
 
kurta999's Avatar
 
Join Date: Apr 2009
Location: Slovakia (HU)
Posts: 1,392
Reputation: 576
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   #1607
Salik
Big Clucker
 
Salik's Avatar
 
Join Date: Aug 2015
Location: Russia
Posts: 64
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   #1608
Scottas
Huge Clucker
 
Scottas's Avatar
 
Join Date: Jul 2010
Location: Lithuania
Posts: 351
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   #1609
iLearner
Huge Clucker
 
iLearner's Avatar
 
Join Date: Apr 2017
Posts: 367
Reputation: 78
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
Old 12/06/2017, 02:12 PM   #1610
kurta999
High-roller
 
kurta999's Avatar
 
Join Date: Apr 2009
Location: Slovakia (HU)
Posts: 1,392
Reputation: 576
Default Re: YSF - kurta999's version

Try to setting storeplayermaterial to 0 in YSF.cfg, it worked for me. It already fixed but new version isnt uploaded yet
kurta999 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 07:53 AM.


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