11.10.2011, 15:45
Alright, the problem is this: I have a /skin command with the ID's of 1-6. So it would be like this:
/skin 4
But when I do that, it does nothing. But when I do /skin with nothing after it it sets a skin to a Cadet (As I set up in the command). Here is the command, if anyone can help me please.
/skin 4
But when I do that, it does nothing. But when I do /skin with nothing after it it sets a skin to a Cadet (As I set up in the command). Here is the command, if anyone can help me please.
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;
}