Easy set admin command - 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: Easy set admin command (
/showthread.php?tid=594198)
Easy set admin command -
xXDuno2000ManXx - 14.11.2015
Hello i need the very very easy set admin command please help !
Re: Easy set admin command -
Ritzy2K - 14.11.2015
What is your admin variable. And player enum? If you can give? I can write it for you.
Re: Easy set admin command -
Kevln - 14.11.2015
pawn Код:
#include <sscanf2>
#include <zcmd>
CMD:setadmin(playerid, params[])
{
new lookupid, level;
if(sscanf(params, "ui", lookupid, level)) return SendClientMessage(playerid, -1, "Usage: /setadmin (id/name) (level).");
PlayerInfo[lookupid][admin_level] = level;
return 1;
}
Adjust it to your needs.
Re: Easy set admin command -
xXDuno2000ManXx - 14.11.2015
thx
Re: Easy set admin command -
jlalt - 14.11.2015
Код:
PlayerInfo[playerid][admin_level] = level;
Will set your own level
Код:
PlayerInfo[lookupid][admin_level] = level;