Get passenger?
#1

Hi, how to check passengers variable (spec == 7) in OnPlayerstateChange? I tryed something like that..

pawn Code:
if(model == 545)
        {
             if(spec == 7)
            {
                        if (playerState == PLAYER_STATE_PASSENGER || playerState == PLAYER_STATE_DRIVER)
                for(new i=0; i<MAX_PLAYERS; i++)
                {
                    if(IsPlayerInAnyVehicle(i))
                    {
                        return 1;
            }

            return 1;
        }
Reply


Messages In This Thread
Get passenger? - by ajwar - 08.01.2011, 16:46
Re: Get passenger? - by Ash. - 08.01.2011, 16:56

Forum Jump:


Users browsing this thread: 1 Guest(s)