Vehicle Restrictions Not working.
#1

How would I restrict a hunter vehicle? Here is my code
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
        if(vehicleid != 425 )
        {
        new Float:slx, Float:sly, Float:slz;
        GetPlayerPos(playerid, slx, sly, slz);
        RemovePlayerFromVehicle(playerid);
        SetPlayerPos(playerid, slx, sly, slz+1.5);
        PlayerPlaySound(playerid, 1130, slx, sly, slz+1.3);
        SendClientMessage(playerid, COLOR_GREEN, "Your not allowed to enter this vehicle");
        return 1;
        }
        return 1;
}
I Will +Rep who ever helps me
Reply


Messages In This Thread
Vehicle Restrictions Not working. - by Infinity90 - 09.06.2012, 10:43
Re: Vehicle Restrictions Not working. - by Calgon - 09.06.2012, 10:47

Forum Jump:


Users browsing this thread: 1 Guest(s)