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



Tune - Ananisiki - 30.04.2014

I have menu for admin and there he can tune car,

lets say i have bullet (you cant add spoilers to this) in the menu there is spoilers and i can add on this, can i do something that checks the car before adding? if its a car that cant be tuned then it will send a message that he cant tune it


AW: Tune - Macronix - 30.04.2014

Well, easy check:
pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == BULLET_ID) return SendClientMessage(playerid, -1, "Can't add spoiler to this vehicle!");