Question:
#1

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?
Reply
#2

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.");
Reply
#3

Ah yes thanks
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)