remove player from vehicle
#10

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        if(vid ==VIP_CAR_ID/*Change this*/)
        {
            if ( P_DATA[ playerid ][ Vip ] >= 1 ) return 1;
            else if(! P_DATA[ playerid ][ Vip ] >= 1 )
            {
                SendClientMessage(playerid, -1, "This is a VIP vehicle, SIR.");
                RemovePlayerFromVehicle(playerid);
            }
        }
    }
    return 1;
}
Please change the VIP_CAR_ID to the car you want the player to be removed from. This is an untested code.
Reply


Messages In This Thread
remove player from vehicle - by [LHT]Bally - 16.12.2011, 15:20
Re: remove player from vehicle - by Kostas' - 16.12.2011, 15:24
Re: remove player from vehicle - by [LHT]Bally - 16.12.2011, 15:25
Re: remove player from vehicle - by suhrab_mujeeb - 16.12.2011, 15:28
Re: remove player from vehicle - by [LHT]Bally - 16.12.2011, 15:29
Re: remove player from vehicle - by suhrab_mujeeb - 16.12.2011, 15:32
Re: remove player from vehicle - by [LHT]Bally - 16.12.2011, 15:32
Re: remove player from vehicle - by vassilis - 16.12.2011, 15:38
Re: remove player from vehicle - by Kostas' - 16.12.2011, 15:39
Re: remove player from vehicle - by suhrab_mujeeb - 16.12.2011, 15:41

Forum Jump:


Users browsing this thread: 1 Guest(s)