If Player Is a Police Leader Show Nick
#7

Код:
	
if(strcmp(cmd, "/leaders", true) == 0)
	{
	  SendClientMessage(playerid,COLOR_GRAY, "Leaders Online");
	  new LeadersOnline;
	  for(new i; i < MAX_PLAYERS; i++)
	  {
	    if(IsPlayerConnected(i))
	    {
	      if(PlayerInfo[i][pLeader])// w/e defines them as a leader, this is an example
				{
	        new LeaderName[MAX_PLAYER_NAME];
	        GetPlayerName(i, LeaderName, sizeof(LeaderName));
					format(string, sizeof(string), "* Leader: %s", LeaderName);
	        SendClientMessage(playerid, COLOR_YELLOW, string);
					LeadersOnline++;
					return 1;
				}
			}
		}
		if(LeadersOnline == 0)
		{
		  SendClientMessage(playerid, COLOR_YELLOW, "* None");
		}
		return 1;
}
How do i make, if i have LA COSA NOSTRA faction and /members will shows who is LA COSA NOSTRA members onlines ?
Reply


Messages In This Thread
If Player Is a Police Leader Show Nick - by wordas - 13.02.2009, 18:22
Re: If Player Is a Police Leader Show Nick - by Think - 13.02.2009, 18:38
Re: If Player Is a Police Leader Show Nick - by wordas - 13.02.2009, 18:42
Re: If Player Is a Police Leader Show Nick - by Think - 13.02.2009, 18:44
Re: If Player Is a Police Leader Show Nick - by ICECOLDKILLAK8 - 13.02.2009, 18:45
Re: If Player Is a Police Leader Show Nick - by wordas - 13.02.2009, 18:47
Re: If Player Is a Police Leader Show Nick - by Typhome - 04.04.2009, 19:30

Forum Jump:


Users browsing this thread: 1 Guest(s)