forward IsAnCopsCar(carid);
public IsAnCopsCar(carid)
{
for(new i = 0; i < sizeof(CopsCars); i++)
{
if(carid == CopsCars[i])
{
return 1;
}
}
return 0;
}
public OnPlayerStateChange(playerid, newstate, oldstate){new newcar = GetPlayerVehicleID(playerid);if(IsAnCopsCar(newcar)){if(gTeam[playerid] == TEAM_COPS) { }else{RemovePlayerFromVehicle(playerid);SendClientMessage(playerid,GRAU, "Du bist kein Polizist");}}
So hab ich es mfg