SA-MP Forums Archive
Need some help. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need some help. (/showthread.php?tid=127485)



Need some help. - Peep - 13.02.2010

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;
	}



Re: Need some help. - Peep - 13.02.2010

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