19.08.2009, 23:48
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetVehicleModel(vehicleid) == //VEHICLEID OF COP CAR)
{
if(gTeam[playerid] == TEAM_POLICE || ispassenger)
{
return 1;
}
else
{
SendClientMessage(playerid, c_r, "[ ! ] This vehicle is for cops only !");
new Float:LocX,Float:LocY,Float:LocZ;
GetPlayerPos(playerid,Float:LocX,Float:LocY,Float:LocZ);
SetPlayerPos(playerid,Float:LocX,Float:LocY,Float:LocZ);
return 1;
}
}