[POMOC]/lideri

Započeo Begii, Januar 13, 2012, 18:53:38 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Begii

Skripta koju koristim: Ravens
Detaljan opis problema: Nemogu naci komandu /lideri
Dio skripte: /
Neke slike/video za lakse dobivanje pomoci(neobavezno): /

Ne postoji u Ravens, moras je napraviti.

Begii


if(strcmp(cmd, "/lideri", true) == 0 || strcmp(cmd, "/lideri", true) == 0)
{
        if(IsPlayerConnected(playerid))
    {
SendClientMessage(playerid, COLOR_NICERED, "_______Online Lideri ________");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
    if(PlayerInfo[i][pLeader] == 1)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Policija: %s", sendername);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
                else if(PlayerInfo[i][pLeader] == 2)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "FBI: %s", sendername);
SendClientMessage(playerid, COLOR_DBLUE, string);
}
                else if(PlayerInfo[i][pLeader] == 3)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Specijalne jedinice: %s", sendername);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
                else if(PlayerInfo[i][pLeader] == 4)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Bolnica: %s", sendername);
SendClientMessage(playerid, COLOR_PINK, string);
}
        else if(PlayerInfo[i][pLeader] == 5)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Yakuza: %s", sendername);
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
}
        else if(PlayerInfo[i][pLeader] == 6)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "{0E0101}Hitman: %s", sendername);
SendClientMessage(playerid, COLOR_GREEN, string);
}
        else if(PlayerInfo[i][pLeader] == 8)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "GSF: %s", sendername);
SendClientMessage(playerid, COLOR_GREEN, string);
}
            else if(PlayerInfo[i][pLeader] == 9)// mjenjas id org i ime, tako i iznad ovoga...
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "LCN: %s", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
}
}
}
return 1;
}