09.07.2009, 11:58
I can help you get started, but you will have to edit/add other stuff yourself:
Hope this will get you started
pawn Код:
// On Top:
new MyVehicle;
// OnGameModeInit
MyVehicle = CreateVehicle(451, 0, 0, 0, 0, 0, 0, 1000); // change the coordinates to your own
// OnPlayerStateChange
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == MyVehicle) // check if the newstate is driver and the vehicleid is "MyVehicle"
{
SendClientMessage(playerid, 0xFFFF00, "Do a rent system here!"); // replace this with whatever you want todo when they enter "MyVehicle"
return 1;
}
return 1;
}