cant find the pay to pay the money
#1

hello, i trying the wholeday to fix this problem if you enter a PnP that you need to pay cash


Код:
stock EnterPNS(playerid)
{
	new vehicleid;
	vehicleid = GetPlayerVehicleID(playerid);
	if(!PNSPoint(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not in range of a PNS.");
    {
    	if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not in a vehicle.");
		{
      		if(IsPlayerInRangeOfPoint(playerid, 7.0, -100.0954,1109.3682,19.7422)) //Fort Carson
	 		{
	            SetVehiclePos(vehicleid, -100.1256,1117.1682,19.3665);
	            SetTimerEx("PNSTimerCarson", 6000, false, "i", playerid);
	            if(GetPlayerCash(playerid) >= 500)
				{
					GivePlayerCash(playerid, -500);
					SendClientMessage(playerid, COLOR_LIGHTGREEN,"   You have purchased a firstaid!");
					return 1;
				}
	            PlayerPlaySound(playerid, 1134, 0.0, 0.0, 0.0);
	            TogglePlayerControllable(playerid, 0);
	            SendClientMessage(playerid, COLOR_GREEN, "You where charged $100 for the damages to your vehicle.");
	   		}
if i enter the Pnp i need to pay 100 dollar and i get the 100 back aigan... please help me out..
Reply
#2

Dude I answered you on the other post you have.... Did it not work?
Reply
#3

No i did not work but this is another problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)