SA-MP Forums Archive
Closest car - 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: Closest car (/showthread.php?tid=554571)



Closest car - bogushas - 04.01.2015

PHP код:
if(bTrash[playerid] == 1)
        {
            new 
veh GetClosestVehicle(playerid5);
            if(
GetVehicleModel(veh) != 408)
            {
                
SendError(playerid"WRONG CAR");
            }
            else
            {
                
SendSucces(playerid"FUCK IT U TRASHMASTA");
                
bTrash[playerid] = 0;
            }
        } 
I'am standing near the 408 ( trash car ) and I always get Error message, that it's a wrong car!


Re: Closest car - bogushas - 04.01.2015

Sorry, fixed.