11.10.2011, 15:56
pawn Код:
command(skin, playerid, params[])
{
new text;
if(!sscanf(params,"d",text))
{
if(Player[playerid][Group] == 4)
{
switch(text)
{
case 0:
{
if(Player[playerid][Group] == 4)
{
SetPlayerSkin(playerid, 71);
}
}
case 1:
{
if(Player[playerid][Group] == 4)
{
SetPlayerSkin(playerid, 141);
}
}
case 2:
{
if(Player[playerid][Group] == 4)
{
SetPlayerSkin(playerid, 187);
}
}
case 3:
{
if(Player[playerid][Group] == 4)
{
SetPlayerSkin(playerid, 70);
}
}
case 4:
{
if(Player[playerid][Group] == 4)
{
SetPlayerSkin(playerid, 165);
}
}
case 5:
{
if(Player[playerid][Group] == 4)
{
SetPlayerSkin(playerid, 166);
}
}
}
}
return 1;
}