race vehicle - 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: race vehicle (
/showthread.php?tid=424315)
race vehicle -
Fernado Samuel - 21.03.2013
Removed, thanks for the help!
Re: race vehicle -
Mystique - 21.03.2013
What is this RaceVehicle defined as?
Re: race vehicle -
Fernado Samuel - 21.03.2013
new RaceVehicle;
Re: race vehicle -
Mystique - 21.03.2013
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.
Re: race vehicle -
Fernado Samuel - 21.03.2013
Removed, thanks for the help!
Re: race vehicle -
Mystique - 21.03.2013
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.
Re: race vehicle -
Fernado Samuel - 21.03.2013
Removed, thanks for the help!
Re: race vehicle -
Mystique - 21.03.2013
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?
Re: race vehicle -
Fernado Samuel - 21.03.2013
Removed
Re: race vehicle -
Mishima - 22.03.2013
Use GetVehicleModel(GetPlayerVehicleID(playerid))