cant find the pay to pay the money - 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)
+--- Thread: cant find the pay to pay the money (
/showthread.php?tid=562794)
cant find the pay to pay the money -
IndependentGaming - 11.02.2015
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..
Re: cant find the pay to pay the money -
kevin1990 - 11.02.2015
Dude I answered you on the other post you have.... Did it not work?
Re: cant find the pay to pay the money -
IndependentGaming - 11.02.2015
No i did not work but this is another problem