10.10.2015, 09:31
I trying to make a system so only cops can enter their vehicle, but the others team can still enter it.
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
new newcar;
if(CopCar(newcar))
{
if (gTeam[playerid] == TEAM_COPS)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED, "You're not in the police team");
}
}
return 1;
}