15.01.2012, 09:42
TRY THIS
IT SHOULD WORK AT 100%
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;
}