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: 459
Reputation: 91
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
Little Clucker
 
Join Date: May 2017
Posts: 5
Reputation: 0
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   #1603
DRIFT_HUNTER
High-roller
 
Join Date: Oct 2009
Posts: 2,065
Reputation: 126
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.
DRIFT_HUNTER 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 06:54 AM.


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