Random gift on vehicle
#8

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;
}
Reply


Messages In This Thread
Random gift on vehicle - by Face9000 - 12.01.2012, 10:40
Re: Random gift on vehicle - by ScriptJorkis - 12.01.2012, 10:42
Re: Random gift on vehicle - by Face9000 - 12.01.2012, 10:43
Re: Random gift on vehicle - by Lorenc_ - 12.01.2012, 10:52
Re: Random gift on vehicle - by Face9000 - 12.01.2012, 10:55
Re: Random gift on vehicle - by [HiC]TheKiller - 12.01.2012, 10:57
Re: Random gift on vehicle - by Face9000 - 12.01.2012, 10:59
Re: Random gift on vehicle - by [HiC]TheKiller - 12.01.2012, 11:02
Re: Random gift on vehicle - by Mrki_Drakula - 12.01.2012, 11:03
Re: Random gift on vehicle - by Face9000 - 12.01.2012, 11:05

Forum Jump:


Users browsing this thread: 1 Guest(s)