Problem OnPlayerEnterVehicle
#3

What for was the GetPlayerVehicleID(playerid);

Anyways, this code shall work.

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(GetVehicleModel(vehicleid) == 425) {
        if(pRank[playerid] >= 3) SendClientMessage(playerid,COLOR_GREEN,"Welcome To The Hunter!");
        else {
            SendClientMessage(playerid,COLOR_RED,"You must be a rank 3 or higher to drive this vehicle");
            ClearAnimations(playerid);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Problem OnPlayerEnterVehicle - by Sn4ke - 12.03.2011, 07:20
Re: Problem OnPlayerEnterVehicle - by antonio112 - 12.03.2011, 07:56
Re: Problem OnPlayerEnterVehicle - by iMonk3y - 12.03.2011, 07:59
Re : Problem OnPlayerEnterVehicle - by Sn4ke - 12.03.2011, 10:03
Re: Problem OnPlayerEnterVehicle - by Sasino97 - 12.03.2011, 10:26
Re: Problem OnPlayerEnterVehicle - by antonio112 - 12.03.2011, 11:06

Forum Jump:


Users browsing this thread: 1 Guest(s)