All pastes #431635 Raw Edit

Anonymous

public text v1 · immutable
·published 2007-04-09 20:11 UTC
rendered paste body
    if(strcmp(cmd, "/wanted", true) == 0) {
        new online;
        new lColour;
        	for (new i = 0; i < MAX_PLAYERS; i++)
			{
        		if (!IsPlayerConnected(i)) continue;
         					GetPlayerName(i, sendername, sizeof(sendername));
             		if (Wanted[i] == 1)
		 			{
               				format(string, sizeof(string), "%s - Level 1", sendername);
                   			lColour = COLOR_WHITE;
                  	}
               		else
			   		if (Wanted[i] == 2)
			   		{
        					format(string, sizeof(string), "%s - Level 2", sendername);
             				lColour = COLOR_WHITE;
             		}
               		else
			   		if (Wanted[i] == 3)
			   		{
        					format(string, sizeof(string), "%s - Level 3", sendername);
           					lColour = COLOR_WHITE;
              		}
                	else
					if (Wanted[i] == 4)
					{
     						format(string, sizeof(string), "%s - Level 4", sendername);
         					lColour = COLOR_RED;
            		}
							online++;
     				if (online == 1)
         					SendClientMessage(playerid, COLOR_JAILBLUE, "Wanted Suspects");
                        	SendClientMessage(playerid, lColour, string);
                	}
					if (online == 0)
					{
                        	SendClientMessage(playerid, COLOR_JAILBLUE, "There are currently no wanted suspects!");
   					}
     		return 1;
  		}