12.03.2011, 07:59
What for was the GetPlayerVehicleID(playerid);
Anyways, this code shall work.
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;
}