Block entering vehicle
#2

596 is the modelid not the vehicleid.

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(GetVehicleModel(vehicleid) == 596) // If the model of the vehicleid is 596 (LA police)
    {
        if(PlayerInfo[playerid][pFaction] != 1)
        {
            new Float:X, Float:Y, Float:Z;
            GetPlayerPos(playerid, X, Y, Z);
            SetPlayerPos(playerid, X, Y, Z);
            SendClientMessage(playerid, COLOR_GREY, "YOU DONT HAVE THE KEYS");
        }
    }
}
Reply


Messages In This Thread
Block entering vehicle - by Ihsan-Cingisiz - 20.03.2011, 10:29
Re: Block entering vehicle - by JamesC - 20.03.2011, 10:33
Re: Block entering vehicle - by Jochemd - 20.03.2011, 11:40
Re: Block entering vehicle - by dice7 - 20.03.2011, 11:46
Re: Block entering vehicle - by Jochemd - 20.03.2011, 11:47

Forum Jump:


Users browsing this thread: 2 Guest(s)