12.01.2012, 11:02
I would personally use it on OnPlayerStateChange as OnPlayerEnterVehicle is called when the player starts entering a vehicle, not when the player is actually in one.
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER) RandomGift(playerid);
return 1;
}