30.04.2009, 13:43
try this one
pawn Код:
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(IsACopCar(vehicleid))
{
if(!IsACop(playerid))
{
new Float:PAX, Float:PAY, Float:PAY;
GetPlayerPos(playerid, PAX, PAY, PAZ);
SetPlayerPos(playerid, PAX, PAY, PAZ);
SendClientMessage(playerid, COLOR_LIGHTRED, "You are not allowed to enter this vehicle(cops only)");
return 1;
}
return 1;
}
}