race vehicle
#1

Removed, thanks for the help!
Reply
#2

What is this RaceVehicle defined as?
Reply
#3

new RaceVehicle;
Reply
#4

If you haven't changed RaceVehicle to anything else it's 0 by default which means it won't show anything. The vehicle model ID's are between 400 and 611.
Reply
#5

Removed, thanks for the help!
Reply
#6

Here's just a simple example to show you, I'll be using the infernus as a racevehicle now.
Код:
 new RaceVehicle = 411;
          if(GetVehicleModel(GetPlayerVehicleID(playerid)) == RaceVehicle)
         {
         SendClientMessage(playerid, COLOR_RED, "This vehicle is only for race.");
         }
This should check if the vehicle is ID 411, and if it is it will send you the message.
Reply
#7

Removed, thanks for the help!
Reply
#8

So you mean that you want a message to be shown whenever a player enters a vehicle? You mean all the model ID's, no matter what vehicle?
Reply
#9

Removed
Reply
#10

Use GetVehicleModel(GetPlayerVehicleID(playerid))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)