13.07.2010, 21:58
First of all, I think I failed. I indeed mean model.
Second of all:
Doesn't work :O
I still can join whitout being a cop
Second of all:
Doesn't work :O
I still can join whitout being a cop
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetVehicleModel(playerid) == 497 || GetVehicleModel(playerid) == 596 ||GetVehicleModel(playerid) == 597 ||GetVehicleModel(playerid) == 598 ||GetVehicleModel(playerid) == 599)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
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;
}