SA-MP Forums Archive
/makeadmin question - 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: /makeadmin question (/showthread.php?tid=408840)



/makeadmin question - Sellize - 19.01.2013

Hey guys, this might be a big question but i was wondering on how to make a /makeadmin [ID] cmd which will set the player status to admin and how do i have something like if IsPlayerAdmin ??


Re: /makeadmin question - Infinity90 - 19.01.2013

pawn Код:
//ZCMD Include needed
//SSCANF Include needed
CMD:makeadmin(playerid,params[])
{
if(IsPlayerAdmin(playerid))
{
new id,level;
if(sscanf(params,"ud",id,level)) return SendClientMessage(playerid,-2,"USAGE: /makeadmin [playerid] [level]");
{
//PlayerInfo Variable Example:  PlayerInfo[id] = level;
}
}
return 1;
}



Re: /makeadmin question - Sellize - 19.01.2013

But how can it make him admin and save that he is?


Re: /makeadmin question - Infinity90 - 19.01.2013

You need a saving system
https://sampforum.blast.hk/showthread.php?tid=352703
https://sampforum.blast.hk/showthread.php?tid=297301