13.07.2010, 21:37
well guys, I'm sorry to say this, but I really need help again.
I want that a normal player can't join a cop car as a driver. As a passenger he is allowed.
I know have this:
But even as a driver a non cop can still get in:O
please help:
I want that a normal player can't join a cop car as a driver. As a passenger he is allowed.
I know have this:
But even as a driver a non cop can still get in:O
please help:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetPlayerVehicleID(playerid) == 497||596||597||598||599)
{
if(sapd[playerid]<=0)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,COLOR_RED,"You are not part of the Sanandreas Police Department.");
SendClientMessage(playerid,COLOR_RED,"The police has spotted you on the security camera. Get away before you get arrested!");
}
}
return 1;
}