0.3x selection menu /buyclothes
#1

hello guys,
for my server i was trying to make a selection menu for /buyclothes but i can't figure it out.. could someone help me

here is the command if you can help me
Код:
    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
0.3x selection menu /buyclothes - by Godzilla8957 - 20.02.2013, 20:15
Re: 0.3x selection menu /buyclothes - by McFellow - 20.02.2013, 20:32
Re: 0.3x selection menu /buyclothes - by Godzilla8957 - 20.02.2013, 20:39
Re: 0.3x selection menu /buyclothes - by McFellow - 20.02.2013, 20:45
Re: 0.3x selection menu /buyclothes - by Godzilla8957 - 20.02.2013, 20:52
Re: 0.3x selection menu /buyclothes - by Godzilla8957 - 20.02.2013, 23:14
Re: 0.3x selection menu /buyclothes - by Peach - 20.02.2013, 23:48

Forum Jump:


Users browsing this thread: 1 Guest(s)