24.08.2010, 21:07
Код:
//---------------------================Leaders=================-------------------------- if (strcmp(cmd, "/lideri", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, 0xD7E802FF, "|__ Lideri Ukluceni __|"); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { GetPlayerName(i, sendername, sizeof(sendername)); if(PlayerInfo[i][pLeader] == 1) { format(string, 256, "Policija Lider: %s", sendername); SendClientMessage(playerid, 0x0000FFFF, string); } if(PlayerInfo[i][pLeader] == 2) { format(string, 256, "FBI Lider: %s", sendername); SendClientMessage(playerid, 0x0000FFFF, string); } if(PlayerInfo[i][pLeader] == 3) { format(string, 256, "ARM Lider: %s", sendername); SendClientMessage(playerid, 0x0000FFFF, string); } if(PlayerInfo[i][pLeader] == 4) { format(string, 256, "NG Lider: %s", sendername); SendClientMessage(playerid, 0xFF9B9BFF, string); } if(PlayerInfo[i][pLeader] == 5) { format(string, 256, "Montana Lider: %s", sendername); SendClientMessage(playerid, 0x8E2323FF, string); } if(PlayerInfo[i][pLeader] == 6) { format(string, 256, "Yakuza Lider: %s", sendername); SendClientMessage(playerid, 0x00F5FFFF, string); } if(PlayerInfo[i][pLeader] == 7) { format(string, 256, "Cole Lider: %s", sendername); SendClientMessage(playerid, 0xFF9B9BFF, string); } if(PlayerInfo[i][pLeader] == 8) { format(string, 256, "Hitman Leader: %s", sendername); SendClientMessage(playerid, 0x8E2323FF, string); } if(PlayerInfo[i][pLeader] == 9) { format(string, 256, "News Reporter Leader: %s", sendername); SendClientMessage(playerid, 0xEFC6FFFF, string); } if(PlayerInfo[i][pLeader] == 10) { format(string, 256, "Taxi Drivers Leader: %s", sendername); SendClientMessage(playerid, 0xFFFF00FF, string); } if(PlayerInfo[i][pLeader] == 11) { format(string, 256, "Grove Street Leader: %s", sendername); SendClientMessage(playerid, 0x00F5FFFF, string); } } } } return 1; }