24.06.2010, 09:55
Hello everyone again,I just made a /skin command and it worked.here is the problem:When you do /skin the USAGE will Apprear Normaly and when you want to choose a skin for example /skin 114 the USAGE Appears Again.hope you can help me.thanks again
Pawn Code:
Pawn Code:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/skin ", true, 3))
{
SendClientMessage(playerid, 0xFF9900AA, "USAGE: /skin [skin id]");
return 1;
}
if(!strcmp(cmdtext, "/skin 0", true, 3))
{
SetPlayerSkin(playerid, 0);
SendClientMessage(playerid, 0xFFFF00AA,"[SUCCESS]You have successfully changed your Skin!");
return 1;
}
if (strcmp("/skin 1", cmdtext, true, 10) == 0)
{
SetPlayerSkin(playerid,1);
SendClientMessage(playerid, 0xFFFF00AA,"[SUCCESS]You have successfully changed your Skin!");
return 1;
}
if (strcmp("/skin 2", cmdtext, true, 10) == 0)
{
SetPlayerSkin(playerid,2);
SendClientMessage(playerid, 0xFFFF00AA,"[SUCCESS]You have successfully changed your Skin!");
return 1;
}
return 0;
}

