Skin Help
#1

Hello, i have a question for my skins, when someone use /buyclothes to buy a skin in binco,zip,prolaps etc they get the skin they choose. But when they die or relog they get the skin that an admin last /setskin on them or the skin they started on server with (if an admin never /setskin on them then they get the skin that an admin latest set on them) what is the problem?

Код:
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][pModel] = level;
				SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
	    	}
	    }
	    return 1;
	}
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: 2 Guest(s)