SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   General (https://forum.sa-mp.com/forumdisplay.php?f=13)
-   -   Suggestions For Future Sa:MP Versions. (https://forum.sa-mp.com/showthread.php?t=102997)

ViniBorn 08/12/2011 12:31 PM

Re: Suggestions For Future Sa:MP Versions.
 
GetClientVarAsInt(playerid,VarName[]);
Gets an integer parameter from the sa-mp.cfg file contained in the player's computer.


SetClientVarAsInt(playerid,VarName[],value);
Sets an integer parameter in the sa-mp.cfg file contained in the player's computer.


Code:

disableheadmove=1
timestamp=1
pagesize=10
fpslimit=100
multicore=1
audioproxyoff=0
audiomsgoff=1

Example:
pawn Code:
new AudioMessage = GetClientVarAsInt(playerid,"audiomsgoff");
new TimeStamp = GetClientVarAsInt(playerid,"timestamp");

if(!AudioMessage)
{
    SendClientMessage(playerid,-1,"Audio messages : Disable");
    SetClientVarAsInt(playerid,"audiomsgoff",1);
}

if(!TimeStamp)
{
    SendClientMessage(playerid,-1,"TimeStamp : Enable");
    SetClientVarAsInt(playerid,"timestamp",1);
}

[NoV]LaZ 08/12/2011 01:44 PM

Re: Suggestions For Future Sa:MP Versions.
 
Quote:

Originally Posted by Viniborn (Post 1560170)
GetClientVarAsInt(playerid,VarName[]);
Gets an integer parameter from the sa-mp.cfg file contained in the player's computer.


SetClientVarAsInt(playerid,VarName[],value);
Sets an integer parameter in the sa-mp.cfg file contained in the player's computer.
[/pawn]

I wouldn't enjoy the idea that a server could modify my PREFERRED configurations.

Michael@Belgium 08/12/2011 05:25 PM

Re: Suggestions For Future Sa:MP Versions.
 
pawn Code:
forward OnObjectDestroyed(objectid)

?? or is this scriptable

Luis- 08/12/2011 08:04 PM

Re: Suggestions For Future Sa:MP Versions.
 
Guys, seeing as Garisino can't edit his post anymore, I suggest posting here. http://forum.sa-mp.com/showthread.php?t=302201.


All times are GMT. The time now is 12:02 AM.

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