[POMOC]/Lideri

Započeo Begii, Januar 14, 2012, 17:41:09 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Begii

Skripta koju koristim : Ravens edit
Dio skripte : /
Slika : /

Treba mi ova komanda /lideri da mi neko uradi molim vas za ove org/mafije :
1. LSPD
2.FBI
3.SWAT
4.Medic
5. Surenos mafia
6.Signatra mafia
7. Vlada
8. Hitman
9. News
10. Taxi
11. Licenseri
12. Vatrogasci
13. Biker's
14. Yamaguchi mafia
15. Chornaya mafia
16.La Vice mafia

Molim vas , moguce ko mi prvi uradi da platim .  ???

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, "LSPD: %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, "SWAT: %s", sendername);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
                else if(PlayerInfo[i][pLeader] == 4)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "MEDIC: %s", sendername);
SendClientMessage(playerid, COLOR_PINK, string);
}
        else if(PlayerInfo[i][pLeader] == 5)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Surenos: %s", sendername);
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
}
        else if(PlayerInfo[i][pLeader] == 6)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Signatra: %s", sendername);
SendClientMessage(playerid, COLOR_GREEN, string);
}
        else if(PlayerInfo[i][pLeader] == 7)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Vlada: %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] == 9)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "NEWS: %s", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
                                 else if(PlayerInfo[i][pLeader] == 10)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "TAXI: %s", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
                                else if(PlayerInfo[i][pLeader] == 11)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Licenseri: %s", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
                              else if(PlayerInfo[i][pLeader] == 12)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Vatrogasci: %s", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
                              else if(PlayerInfo[i][pLeader] == 13)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Biker's: %s", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
                                         else if(PlayerInfo[i][pLeader] == 14)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Yamaguchi: %s", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
                                         else if(PlayerInfo[i][pLeader] == 15)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Chornaya: %s", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
                                         else if(PlayerInfo[i][pLeader] == 16)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "La Vice: %s", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}

}
}
}
return 1;
}

Citat: °° BaD BoY °° poslato Januar 14, 2012, 17:52:15 POSLE PODNE
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, "LSPD: %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, "SWAT: %s", sendername);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
}
                else if(PlayerInfo[i][pLeader] == 4)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "MEDIC: %s", sendername);
SendClientMessage(playerid, COLOR_PINK, string);
}
        else if(PlayerInfo[i][pLeader] == 5)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Surenos: %s", sendername);
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
}
        else if(PlayerInfo[i][pLeader] == 6)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Signatra: %s", sendername);
SendClientMessage(playerid, COLOR_GREEN, string);
}
        else if(PlayerInfo[i][pLeader] == 7)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Vlada: %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] == 9)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "NEWS: %s", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
                                 else if(PlayerInfo[i][pLeader] == 10)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "TAXI: %s", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
                                else if(PlayerInfo[i][pLeader] == 11)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Licenseri: %s", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
                              else if(PlayerInfo[i][pLeader] == 12)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Vatrogasci: %s", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
                              else if(PlayerInfo[i][pLeader] == 13)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Biker's: %s", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
                                         else if(PlayerInfo[i][pLeader] == 14)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Yamaguchi: %s", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
                                         else if(PlayerInfo[i][pLeader] == 15)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Chornaya: %s", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}
                                         else if(PlayerInfo[i][pLeader] == 16)
    {
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "La Vice: %s", sendername);
SendClientMessage(playerid, COLOR_WHITE, string);
}

}
}
}
return 1;
}


Zar ne bi moglo ovako :


new lider[64];

if(PlayerInfo[i][Lider] == 1) { lider = "Lider"; }
else if(PlayerInfo[i][Lider] == 2) { lider = "Lider"; }
itd...?I posle samo napravi proveru ,nesto ovako :

format(string, 256, "%s  ", lider);
SCM(playerid, PLAVA, string);


To sam onako bezveze uradio samo da bih ti pokazao da moze jednostavnije ...:P
Btw,tu kod tebe ima i stvari koje usporavaju komandu ...

A moze i tako, zasto ne ?

Ali mislim sto se njega tice dobro mu je i ovako. Polako, tek se rego koliko vidim ima vremena on jos za skriptanje :)

Citat: °° BaD BoY °° poslato Januar 14, 2012, 18:01:28 POSLE PODNE
A moze i tako, zasto ne ?

Ali mislim sto se njega tice dobro mu je i ovako. Polako, tek se rego koliko vidim ima vremena on jos za skriptanje :)
Pogledaj kolika je komanda zauzima redova , omg ...Zasto jednostavno kad moze komplikovano jel da?

Begii

Ma ja sam otprije , imao sam 500postova ali sam dobio ban , Inace imam 22 erora .
Daj moze neko napraviti kao FS i da sam ubacim na server.

Citat: Novi sam ! poslato Januar 14, 2012, 18:03:57 POSLE PODNE
Ma ja sam otprije , imao sam 500postova ali sam dobio ban , Inace imam 22 erora .
Daj moze neko napraviti kao FS i da sam ubacim na server.

Prvo niko ti to nece uraditi jer treba definicija PlayerInfo,pLeader i ostalih varijabli da bi ti radila normalno komanda ...Btw,potrudi se malo sam !

EDIT: Za ovo PlayerInfo i pLeader pretpostavio sam jer koristis Ravens ...
Poslednja Izmena: Januar 14, 2012, 18:08:25 POSLE PODNE od Nxidza

Citat: Novi sam ! poslato Januar 14, 2012, 18:03:57 POSLE PODNE
Ma ja sam otprije , imao sam 500postova ali sam dobio ban , Inace imam 22 erora .
Daj moze neko napraviti kao FS i da sam ubacim na server.


Daj svoj pravi nick ovde od ranije i razlog zasto si banovan
Citat: ...Neno... poslato Januar 26, 2013, 23:31:02 POSLE PODNE
Poceo sam mapati i tu je doslo do problema.Nakon par mapa,vidio sam post Gottia i kaze da nista nevalja da je katastrofa,i pocnemo se svadjati,psovati.Popusimo bananu obojica,i nakon toga nesto sam napravio (mapu) i Gotti kaze dobra,uh reko opet me zajebava,i saljem ja njemu na pm reko ti mene zajebavas,kaze on ne,i pomirimo se.Nakon toga postali smo dosta dobri

Begii

Nino i ban sam rad rasprave sa adminima , msm nije ban nego brisanje acca :D