/wanted list of persons with wanted [EDIT... problem solved]
#2

This should work. Shows their wanted level too. Enjoy.

Код:
if(strcmp(cmd, "/wanted", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	 	{
			if(gTeam[playerid] == 2 || IsACop(playerid))
			{
				new x;
				SendClientMessage(playerid, COLOR_GREEN, "Current Wanted Suspects:");
			  for(new i=0; i < MAX_PLAYERS; i++) {
					if(IsPlayerConnected(i))
					{
					  if(WantedLevel[i] > 1)
					  {
							GetPlayerName(i, giveplayer, sizeof(giveplayer));
							format(string, sizeof(string), "%s%s: %d", string,giveplayer,WantedLevel[i]);
							x++;
							if(x > 3) {
							  SendClientMessage(playerid, COLOR_YELLOW, string);
							  x = 0;
								format(string, sizeof(string), "");
							} else {
								format(string, sizeof(string), "%s, ", string);
							}
						}
					}
				}
Reply


Messages In This Thread
/wanted list of persons with wanted [EDIT... problem solved] - by jesse237 - 22.02.2009, 20:46
Re: /wanted list of persons with wanted - by Zack9764 - 22.02.2009, 20:49
Re: /wanted list of persons with wanted - by jesse237 - 22.02.2009, 21:22
Re: /wanted list of persons with wanted - by jesse237 - 22.02.2009, 21:57
Re: /wanted list of persons with wanted - by Coicatak - 23.02.2009, 08:21
Re: /wanted list of persons with wanted - by jesse237 - 23.02.2009, 13:14
Re: /wanted list of persons with wanted - by jesse237 - 23.02.2009, 13:30
Re: /wanted list of persons with wanted - by jesse237 - 23.02.2009, 14:49
Re: /wanted list of persons with wanted - by Coicatak - 24.02.2009, 10:19

Forum Jump:


Users browsing this thread: 1 Guest(s)