19.06.2013, 22:34
(
Последний раз редактировалось Ananisiki; 15.12.2013 в 18:48.
)
^^^^^^^^
if(GetPlayerSkin(playerid) == 294 && IsPlayerAdmin(playerid)==0) return SendClientMessage(playerid, COLOR_RED, "You Must Be An Admin To Choose This Skin.");
public OnPlayerRequestSpawn(playerid)
{
if(GetPlayerSkin( playerid ) == 294 && IsPlayerAdmin(playerid))
else return SendClientMessage(playerid, COLOR_RED, "You Must Be An Admin To Choose This Skin.");
return 1;
}
CMD:skin(playerid, params[])
{
new skinid;
if(sscanf(params, "i", skinid)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /skin (SkinID) - Enter A Valid Skin ID");
if(skinid > 299 || skinid < 0) return SendClientMessage(playerid, COLOR_RED, "Invalid Skin ID.");
if(skinid == 294 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "You Must Be An Admin To Choose This Skin.");
SetPlayerSkin(playerid, skinid);
return 1;
}
CMD:skin(playerid, params[])
{
new skinid;
if(sscanf(params, "d", skinid)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /skin (SkinID) - Enter A Valid Skin ID");
if(skinid > 299 || skinid < 0) return SendClientMessage(playerid, COLOR_RED, "Invalid Skin ID.");
if(skinid == 294 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COLOR_RED, "You Must Be An Admin To Choose This Skin.");
SetPlayerSkin(playerid, skinid);
return 1;
}