[Tutorial] How to create a vehicle fix command - For Admins
#5

Quote:
Originally Posted by [ABK]Antonio
Посмотреть сообщение
pawn Код:
if(PlayerInfo[playerid][pAdmin] >= 4) //Here we check if the player's admin level is greater than or equal to 4
{
    //Rest of the script goes here
}
else return SendClientMessage, 0xFFFFFFFF, " **You must be a level 4 admin to use that!"); //If it's not, we'll escape the function while sending them a message
You could do that...or this

pawn Код:
if(PlayerInfo[playerid][pAdmin] < 4) return SendClientMessage, 0xFFFFFFFF, " **You must be a level 4 admin to use that!");
If their level is less than 4, we aren't going to continue
Ok thanks alot Antonio, do you think its good for a first tutorial, like is there anything i could improve on?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)