Command Help - 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: Command Help (
/showthread.php?tid=585070)
Command Help -
Armageddonz - 10.08.2015
how to make admin command included check if player is admin level X (admin system) in ini file using y_ini...
i want to read the player data in ini and put into this PlayerInfo[playerid][pAdmin] > 1...hope someone help me :v
Re: Command Help -
nmader - 10.08.2015
This is an area to receive help of scripts created. You seem to be a newbie to scripting so I recommend hitting up the tutorials section to first learn saving systems, then look into enumerations.
Respuesta: Command Help -
Yerro - 10.08.2015
pawn Code:
if(strcmp(cmdtext, "/command", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] > 0) //If playerid isn't a admin, he can't type this.
{
//Your command
}
else SendClientMessage(playerid, -1, "You aren't admin.");
return 1;
}