25.12.2012, 20:59
hi how to make a skin for admin olny? command?
/staffskin
/staffskin
COMMAND:staffskin(playerid,params[]) { if(PlayerAdmin[playerid] < 1) return SendClientMessage(playerid,COLOR_RED,"You are not an Admin!"); //Your Admin Variable here { SetPlayerSkin(playerid, 217); } return 1; }
if (strcmp("/staffskin", cmdtext, true, 10) == 0)
{
if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,-1,"You are not allowed to use this command");
SetPlayerSkin(playerid,217);
return 1;
}
Код:
COMMAND:staffskin(playerid,params[]) { if(PlayerAdmin[playerid] < 1) return SendClientMessage(playerid,COLOR_RED,"You are not an Admin!"); //Your Admin Variable here { SetPlayerSkin(playerid, 217); } return 1; } |