/mdc command only works in first sfpd car help
#9

Quote:
Originally Posted by Macronix
Посмотреть сообщение
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;
}
and then check with

Код:
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.");
}
That worked! Thanks so much! REP+
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)