10.09.2014, 10:37
Just check if a player is in a vehicle before that.
pawn Код:
if(IsPlayerInAnyVehicle(targetid))
format(str3, sizeof (str3), "~y~In A ~w~%s.", VehicleNames[GetVehicleModel(GetPlayerVehicleID(targetid))-400]);
else strcat(str3,"~y~not in vehicle"); // no need to use format if there are no variables.