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

Код:
CMD:mdc(playerid, params[])
{
	if(eingeloggt[playerid] == 0)return SendClientMessage(playerid,COLOR_RED,"Du bist noch nicht eingeloggt.");
	if(pInfo[playerid][fraktion] != 1)return SendClientMessage(playerid,COLOR_RED,"Du bist kein Mitglied vom SFPD.");
    if(pInfo[playerid][fraktion] == 1 && pInfo[playerid][duty] != 1)return SendClientMessage(playerid,COLOR_RED,"Du bist nicht im Dienst.");
    for(new i=0; i<sizeof(sfpdcars); i++)
    if(GetPlayerVehicleID(playerid) == sfpdcars[i])
	{
 		return ShowPlayerDialog(playerid,MDCDIALOG1,DIALOG_STYLE_INPUT,"SAPD - Mobile Data Computer","Gebe das MDC Passwort ein.","Okay","Abbrechen");
	}
	else
	{
	    return SendClientMessage(playerid,COLOR_RED,"Du sitzt in keinem PD Fahrzeug.");
	}
	return 1;
}
I have like 10 Police Cars, and only in the first car the mdc works
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)