Certain vehicle
#5

Here is an example for you..

Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
	new vehicle = GetPlayerVehicleID(playerid);
    if(newstate == PLAYER_STATE_DRIVER)
	{
	    if(GetVehicleModel(vehicle) == modelnumberhere)
	    {
	        SendClientMessage(playerid, COLOR_WHITE "Your message here");
			return 1;
	    }
EDIT:

Please note: Like the guy said above.. This will make it so anyone who enters ANY VEHICLE with ONLY THIS MODEL NUMBER will get the message. For example if you set the model number to 900 and the vehicle was a jeep.. Everyone who enters any jeep will get the message.

+Rep me if I helped you
Reply


Messages In This Thread
Certain vehicle - by Hand-Scripter - 13.05.2013, 19:30
Re: Certain vehicle - by MP2 - 13.05.2013, 19:39
Re: Certain vehicle - by Hand-Scripter - 13.05.2013, 19:41
Re: Certain vehicle - by -CaRRoT - 13.05.2013, 19:52
Re: Certain vehicle - by Phil_Cutcliffe - 13.05.2013, 19:58
Re: Certain vehicle - by Hand-Scripter - 14.05.2013, 06:47
Re: Certain vehicle - by MP2 - 14.05.2013, 08:37

Forum Jump:


Users browsing this thread: 1 Guest(s)