Bombing only for admin
#2

well... that would be quite easy. Just use an "if" statement to check if the player using the command is an admin

pawn Код:
if(IsPlayerAdmin(playerid)) //this checks if the player is an RCON admin
{
    //code goes here
}
else
{
    SendClientMessage(playerid, COLOR_RED, "your not an admin!");
}
return 1;
}
Reply


Messages In This Thread
Bombing only for admin - by ludesert - 16.07.2011, 20:12
Re: Bombing only for admin - by SergiKirov - 16.07.2011, 20:43
Re : Bombing only for admin - by ludesert - 16.07.2011, 20:47
Re: Bombing only for admin - by Kush - 16.07.2011, 21:04
Re : Bombing only for admin - by ludesert - 16.07.2011, 21:06
Re: Bombing only for admin - by Mauzen - 16.07.2011, 21:32
Re : Bombing only for admin - by ludesert - 16.07.2011, 21:40
Re: Bombing only for admin - by Mauzen - 16.07.2011, 21:47
Re : Bombing only for admin - by ludesert - 16.07.2011, 21:49
Re : Bombing only for admin - by ludesert - 16.07.2011, 22:09

Forum Jump:


Users browsing this thread: 1 Guest(s)