saving player wanted - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: saving player wanted (
/showthread.php?tid=556881)
saving player wanted -
1fret - 11.01.2015
I'm trying to make a wanted level saving system with ysi but the problem is it won't save so I'm wondering if someone could show me an example or a link of a tutorial of what to do.
Re: saving player wanted -
sas10 - 11.01.2015
here u go
PHP код:
enum pInfo
{
pWanted
}
PHP код:
forward LoadUser_data(playerid,name[],value[]);
public LoadUser_data(playerid,name[],value[])
{
INI_Int("Wanted",PlayerInfo[playerid][pWanted]);
return 1;
}
OnDialogResponse
PHP код:
INI_WriteInt(File,"Wanted",0);
onplayerconect or login
PHP код:
SetPlayerWantedLevel(playerid, PlayerInfo[playerid][pWanted]);
OnPlayerDisconnect
PHP код:
INI_WriteInt(File,"Wanted",GetPlayerWantedLevel(playerid));
+rep if i helped u
Re: saving player wanted -
1fret - 12.01.2015
thanks dude
but i have a problem say for instance i want to check if the player is wanted at OnPlayerrequestspawn
how do i do that?