Need some help.
#1

i have command to buy zhetons , but i want to do that i can choose ammount myself /buyzhetons ammount .

My buy command is here:
Код:
if(strcmp(cmd, "/buyzheton", true) == 0)
	{
		if(IsPlayerConnected(playerid))
    	{
			if(PlayerToPoint(3.0,playerid,1010.0345,-1114.1722,5456.5596))
     	{
				  if(GetPlayerMoney(playerid) < 1000)
				  {
       			SendClientMessage(playerid, COLOR_GREY, "You don't have enough money for a Zheton");
       			return 1;
					}
					else
					{
       			SendClientMessage(playerid, COLOR_GREEN, "You bought a Zheton for $1000");
       			SafeGivePlayerMoney(playerid, - 1000);
       			PlayerInfo[playerid][pSeton] += 1;
       			OnPlayerUpdate(playerid);
					}
			}
		}
 		return 1;
	}
Reply
#2

ok, I dont need it anymore . I made it myself
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)