Quote:
Originally Posted by mineralo
TRY THIS
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(ispassenger == 0) { if(GetVehicleModel(vehicleid) == 523 || GetVehicleModel(vehicleid) == 596 || GetVehicleModel(vehicleid) == 497 || GetVehicleModel(vehicleid) == 427 || GetVehicleModel(vehicleid) == 601) { if(APlayerData[playerid][PlayerClass] == ClassPolice || APlayerData[playerid[PlayerClass] == ClassSRT) { return 1; } else { SendClientMessage(playerid, c_r, "( ! ) This vehicle is for Police Officers only !"); GetPlayerPos(playerid,Float:LocX,Float:LocY,Float:LocZ); SetPlayerPos(playerid,Float:LocX,Float:LocY,Float:LocZ); return 1; } } }} return 1; }
IT SHOULD WORK AT 100%
|
That can't work...
Mind if I see how you set all those variables, such as static vehicle and player team?