Skin Help
#4

Код:
if(strcmp(cmd, "/Buyclothes", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
        	if(IsAtClothShop(playerid))
	        {
	            tmp = strtok(cmdtext, idx);
				if(!strlen(tmp))
				{
					SendClientMessage(playerid, COLOR_WHITE,"USAGE: /Buyclothes [Skin ID]");
					return 1;
				}
				new level = strval(tmp);
				GivePlayerMoney(playerid,-200);
				SafeGivePlayerMoney(playerid, - 200);
	            if(!IsValidSkin(level))
				return SendClientMessage(playerid, COLOR_GREY, "Wrong skin ID!");
			    PlayerInfo[playerid][pChar] = level;
				SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
	    	}
	    }
	    return 1;
	}
Try this.
Reply


Messages In This Thread
Skin Help - by Shayaziz - 24.08.2012, 17:55
Re: Skin Help - by Shetch - 24.08.2012, 18:05
Re: Skin Help - by Shayaziz - 24.08.2012, 18:08
Re: Skin Help - by Shetch - 24.08.2012, 18:11
Re: Skin Help - by Shayaziz - 24.08.2012, 18:20
Re: Skin Help - by MikkaVanBuuren - 24.08.2012, 18:25

Forum Jump:


Users browsing this thread: 3 Guest(s)