/skin problem
#1

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:
Код:
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;
}
Reply


Messages In This Thread
/skin problem - by 2kool4skool - 24.06.2010, 09:55
Re: /skin problem - by KuHS - 24.06.2010, 10:47
Re: /skin problem - by 2kool4skool - 24.06.2010, 12:12
Re: /skin problem - by KuHS - 24.06.2010, 12:22
Re: /skin problem - by 2kool4skool - 24.06.2010, 12:37

Forum Jump:


Users browsing this thread: 1 Guest(s)