11.02.2015, 18:55
hello, i trying the wholeday to fix this problem if you enter a PnP that you need to pay cash
if i enter the Pnp i need to pay 100 dollar and i get the 100 back aigan... please help me out..
Код:
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.");
}

