saving player wanted
#1

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.
Reply
#2

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(playeridPlayerInfo[playerid][pWanted]); 
OnPlayerDisconnect
PHP код:
INI_WriteInt(File,"Wanted",GetPlayerWantedLevel(playerid)); 
+rep if i helped u
Reply
#3

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)