Jump to content
  • 0

Ajutor MDC


CriatixX

Question

Problema intalnita (descriere): Vreau sa ma ajutati sa fac comanda /mdc pentru departamente, am una dar nu este buna, in ea vreau sa apara toate motivele pentru care a primit wanted acea persoana si cine i le-a acordat.
Ero(area / rile) / warning-(ul / urile):
Liniile de cod / sursa / script-ul(obligatoriu):
Imagini / Video (optional):
Ati incercat sa rezolvati singur?:

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Uite: 

CMD:mdc(playerid, params[])
{
	if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi  mai intai.");
	if(IsPlayerConnected(playerid))
 	{
  		if(!IsACop(playerid)) return SendClientMessage(playerid, COLOR_DS, "{37B9C8}Nu esti politist.");
		new tmpcar = GetPlayerVehicleID(playerid);
		new ccar = IsPlayerInAnyVehicle(playerid);
		new id,string[256],sendername[MAX_PLAYER_NAME];
		if(sscanf(params, "u", id)) return SCM(playerid,0xFFFFFFFF,"{B8DBFF}Synthax: /mdc <Name/Playerid>");
		{
			if(ccar && IsACopCar(tmpcar) || ccar && IsANgCar(tmpcar) || ccar && IsAFbiCar(tmpcar) || PlayerToPoint(10.0,playerid,1762.0028,-1584.4185,1742.5264) || PlayerToPoint(10.0,playerid,253.9323,69.7215,1003.6406))
			{
				if(IsPlayerConnected(id))
				{
    				GetPlayerName(id, sendername, sizeof(sendername));
					SendClientMessage(playerid, COLOR_TUTORIAL2,"______[MOBILE DATA COMPUTER]_______");
					format(string, sizeof(string), "Name: %s", sendername);
					SendClientMessage(playerid, COLOR_GRAD1,string);
					format(string, sizeof(string), "Victim: %s", PlayerInfo[id][pVictim]);
					SendClientMessage(playerid, COLOR_GRAD2,string);
					format(string, sizeof(string), "Accused by: %s", PlayerInfo[id][pAccused]);
					SendClientMessage(playerid, COLOR_GRAD3,string);
					format(string, sizeof(string), "Wanted Level: %d", PlayerInfo[id][pWantedLevel]);
					SendClientMessage(playerid, COLOR_GRAD4,string);
					format(string, sizeof(string), "Time until track lose: %d mins", wantedlost[id]/60);
					SendClientMessage(playerid, COLOR_GRAD5,string);
					if(strcmp(PlayerInfo[id][pCrime1],  "Fara Crima", false) == 0) { }
					else
					{
						format(string, sizeof(string), "%s", PlayerInfo[id][pCrime1]);
						SendClientMessage(playerid,COLOR_GRAD1,string);
					}
					if(strcmp(PlayerInfo[id][pCrime2],  "Fara Crima", false) == 0) { }
					else
					{
						format(string, sizeof(string), "%s", PlayerInfo[id][pCrime2]);
						SendClientMessage(playerid, COLOR_GRAD2,string);
					}
					if(strcmp(PlayerInfo[id][pCrime3], "Fara Crima", false) == 0) { }
					else
					{
						format(string, sizeof(string), "%s", PlayerInfo[id][pCrime3]);
						SendClientMessage(playerid, COLOR_GRAD3,string);
					}
					SendClientMessage(playerid, COLOR_TUTORIAL2,"___________________________________");
				}
				else
				{
				    SendClientMessage(playerid, COLOR_DS, "{FFFFCC}Error: Player not connected.");
				    return 1;
				}
			}
			else
			{
			    SendClientMessage(playerid, COLOR_DS, "{37B9C8}You are not in a Police Vehicle or in the Police Department.");
				return 1;
			}
		}
  	}
	return 1;
}

 

  • Upvote 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.