Send Message to player when
#1

He enters a vehicle? I was thinking of
pawn Код:
public OnPlayerEnterVehicle
and basically when the player enetrs a vehicle it will send him a text
"To start the engine type /vcontrol" ?
Reply
#2

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
     SendClientMessage(playerid, YELLOW, "To start the engine type /vcontrol");
     Return 1;
}
Reply
#3

Use OnPlayerStateChange

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
        SendClientMessage(playerid, -1, "To start the engine type /vcontrol");
}
Reply
#4

Working thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)