16.07.2011, 21:51
For a specific vehicle it would probally go like this.
at the top
Under public OnGameModeInit()
Under public OnPlayerStateChange
I think that might work
If you want it for a single vehicle under OnPlayerEnterVehicle
at the top
Код:
new Vehicle_01;
Код:
Vehicle_01 = CreateVehicle(411, 1309.7299, -870.1506, 39.2363, 270.8354, 0, 0, 1000);
Код:
if(newstate == 2 || newstate == 3) { new VehicleID = GetPlayerVehicleID(playerid); if(VehicleID == Vehicle_01) { SendClientMessage(playerid, COLOR_YELLOW, " You have entered a vehicle"); } } return 1; }
If you want it for a single vehicle under OnPlayerEnterVehicle
Код:
SendClientMessage(playerid, COLOR_YELLOW,"You have entered a vehicle");