03.05.2013, 02:09
Here s my command ( /vskin <skinid> that will change player skin according its vip level )
I dont want people to abuse this command (use it only after 15 mins)
I dont want people to abuse this command (use it only after 15 mins)
pawn Код:
CMD:vskin(playerid, params[])
{
if(PlayerInfo[playerid][pVip] >= 1)
{
new skinid, string[128];
if(sscanf(params, "i", skinid))
return SendClientMessage(playerid, DEEPPINK, "USAGE: /vskin <id>");
if(skinid < 0 || skinid > 299)
return SendClientMessage(playerid, DEEPPINK, "ERROR: Available skins from 0 to 299");
if(skinid == GetPlayerSkin(playerid))
return SendClientMessage(playerid, DEEPPINK, "ERROR: You are already using this skin");
{
SetPlayerSkin(playerid, skinid);
format(string, sizeof(string), "[VIP SKINS] You just set your skin to %i", skinid);
SendClientMessage(playerid, GREEN, string);
}
}
else return SendClientMessage(playerid, DEEPPINK, "ERROR: You must be vip level 1 to use this command!");
return 1;
}