09.04.2018, 13:40
Quote:
You could also write a function like
Код:
IsAPoliceVehicle(vehicleid) { for(new i = 0; i < sizeof(sfpdcars); i++) { if(vehicleid == sfpdcars[i]) return true; } return false; } Код:
if(IsAPoliceVehicle(GetPlayerVehicleID(playerid))) { ShowPlayerDialog(playerid,MDCDIALOG1,DIALOG_STYLE_INPUT,"SAPD - Mobile Data Computer","Gebe das MDC Passwort ein.","Okay","Abbrechen"); } else { SendClientMessage(playerid,COLOR_RED,"Du sitzt in keinem PD Fahrzeug."); } |