Question: - 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: Question: (
/showthread.php?tid=374854)
Question: -
Penki4a - 04.09.2012
My question is i made a new cmd for my server but it should affect only vehicles.So how can i add an exception in the code,which blocks the code if the player is on a bike?
Re: Question: -
Ash. - 04.09.2012
A bike is a vehicle? Anyway...
You'll need to check modelid's against GetVehicleModel to ensure that the model the player is driving is not a bike.
pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == MODEL_ID_OF_BIKE) return SendClientMessage(playerid, -1, "You're on a bike.");
Re: Question: -
Penki4a - 04.09.2012
Ah yes thanks