11.10.2011, 15:50
Corrected code, hope it will works.
pawn Код:
command(skin, playerid, params[])
{
new text;
if(sscanf(params,"d",text))
{
SendClientMessage(playerid,COLOR,"Error msg.");
return 1;
}
if(Player[playerid][Group] == 4)
{
switch(text)
{
case 0:
{
SetPlayerSkin(playerid, 71);
}
case 1:
{
SetPlayerSkin(playerid, 141);
}
case 2:
{
SetPlayerSkin(playerid, 187);
}
case 3:
{
SetPlayerSkin(playerid, 70);
}
case 4:
{
SetPlayerSkin(playerid, 165);
}
case 5:
{
SetPlayerSkin(playerid, 166);
}
}
}
return 1;
}
}