pls help

Započeo SARMA, Jul 28, 2009, 13:49:18 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

moze li mi neko napravit komandu /lideri da pise nick lidera i cega je on lider

evo ovo su idovi organizacija

1-pd
2-csi
3-swat
4-medic
5-groove
6-yakuza
8-hitman agency
9-cnn
10-taxi
11-licenser
12-lcn




pls help


//------------------------------------lideri-------------------------------------
if (strcmp(cmd, "/lideri", true) == 0)
{
          if(IsPlayerConnected(playerid))
   {
SendClientMessage(playerid, COLOR_LIGHTRED, "Lideri Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
    if(PlayerInfo[i][pLeader] == 1)
   {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "MUP: %s", sendername);
SendClientMessage(playerid, COLOR_GREEN, string);
    }
    else if(PlayerInfo[i][pLeader] == 2)
   {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "FBI: %s", sendername);
SendClientMessage(playerid, COLOR_GREEN, string);
    }
    else if(PlayerInfo[i][pLeader] == 5)
   {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Sicilian Mafia: %s", sendername);
SendClientMessage(playerid, COLOR_GREEN, string);
    }
    else if(PlayerInfo[i][pLeader] == 6)
   {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Yakuza: %s", sendername);
SendClientMessage(playerid, COLOR_GREEN, string);
    }
    else if(PlayerInfo[i][pLeader] == 8)
   {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Hitman: %s", sendername);
SendClientMessage(playerid, COLOR_GREEN, string);
    }
                                                else if(PlayerInfo[i][pLeader] == 10)
   {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Groove: %s", sendername);
SendClientMessage(playerid, COLOR_GREEN, string);
    }
    else if(PlayerInfo[i][pLeader] == 11)
   {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "East Side Locos: %s", sendername);
SendClientMessage(playerid, COLOR_GREEN, string);
               }
}
}
}
return 1;
}



uradi po svome ako imalo znas scriptat samo mijenjas ime i id kod ovoga else if(PlayerInfo[pLeader] == 11)

znaci ako ti treba id 12 promjenis u else if(PlayerInfo[pLeader] == 12)


a oko ovoga ime organizacije to ti je ovaj dio format(string, 256, "East Side Locos: %s", sendername);

znaci ako zelis npr da ti je ime organizacije pod iznad navedenim id-em neko drugo ovo East Side Locos promjeni u svoje po zelji s time da ne diras navodnike ( "," )



Poslednja Izmena: Jul 29, 2009, 23:06:27 POSLE PODNE od M.K.