How to remove player from car?
#4

Use OnPlayerStateChange :
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
    {
        new vehicleid = GetPlayerVehicleID(playerid);
        if(vhid == 411 && sInfo[playerid][admin] < 1)
        {
            SendClientMessage(playerid, -1, "This car is for ADMINS!");
            RemovePlayerFromVehicle(playerid);
        }
    }
    return 1;
}
Reply


Messages In This Thread
How to remove player from car? - by Delgad0 - 21.11.2014, 15:31
Re: How to remove player from car? - by DavidBilla - 21.11.2014, 15:32
Re: How to remove player from car? - by BigGroter - 21.11.2014, 15:33
Re : How to remove player from car? - by Dutheil - 21.11.2014, 15:34
Re: How to remove player from car? - by Delgad0 - 21.11.2014, 15:36
Re: How to remove player from car? - by Pawnify - 21.11.2014, 15:37
Re: How to remove player from car? - by Larceny - 21.11.2014, 15:40
Re: Re : How to remove player from car? - by Delgad0 - 21.11.2014, 15:41
Re: How to remove player from car? - by Delgad0 - 21.11.2014, 15:46
Re : How to remove player from car? - by Dutheil - 21.11.2014, 15:52

Forum Jump:


Users browsing this thread: 1 Guest(s)