31.10.2012, 01:52
pawn Код:
YCMD:spawnvehicle(playerid, params)
{
if(PlayerInfo[playerid][pAdmin] < 1 ) return SendClientMessage(playerid, -1, "You are not an admin!");
new skin, player;
if(sscanf(params, "ud", player, skin)) return SendClientMessage(playerid, COLOR_GREY, "YCMD: /setskin [Part of Name/ID] [SkinID]");
if(skin < 0 || skin > 299) return SendClientMessage(playerid, COLOR_GREY, "YCMD: Invalid skin!");
SetPlayerSkin(player, skin);
return 1;
}
if(PlayerInfo[playerid][pAdmin] <1 ) return SendClientMessage(playerid, -1, "You are not an admin!"); <--- Checks if they are an Admin...