24.08.2011, 09:00
pawn Code:
//Where you have the include
public OnPlayerConnect(playerid)
{
if(IsPlayerXAdmin(playerid)) SetPVarInt(playerid,"Admin",1)
else SetPVarInt(playerid,"Admin",0)
return 1;
}
//On your GM
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/help", cmdtext, true, 10) == 0)
{
if(GetPVarInt(playerid,"Admin") == 1)
{
SendClientMessage(playerid,orange,"You are an admin");
}
else
{
SendClientMessage(playerid,orange,"You are not an admin");
}
return 1;
}
return 0;
}