Jump to content
  • 0

PROBLEMA.


TheFanTa1

Question

Salut sa-mp.ro . Ma poate ajuta si pe mine cineva sa fac in dialog niste comenzi?Multumesc.

[pawn] if (strcmp(cmd, "/admins", true) == 0)

{

        if(IsPlayerConnected(playerid))

    {

        if(gPlayerLogged[playerid] != 0)

        {

SendClientMessage(playerid, -1, ""VERDE2"|_______________"PORTOCALIU"Admini Online"VERDE2"_______________|");

for(new i = 0; i < MAX_PLAYERS; i++)

{

if(IsPlayerConnected(i))

{

    GetPlayerName(i, sendername, sizeof(sendername));

    if(PlayerInfo[pAdmin] == 1)

    {

format(string, 256, ""MOV2"ID: %d | Trial Admin| Nume: %s", i, sendername);

SendClientMessage(playerid, -1, string);

}

if(PlayerInfo[pAdmin] == 2)

    {

format(string, 256, ""MOV2"ID: %d | Good Admin | Nume: %s", i, sendername);

SendClientMessage(playerid, -1, string);

}

if(PlayerInfo[pAdmin] == 3)

    {

format(string, 256, ""MOV2"ID: %d | Best Admin | Nume: %s", i, sendername);

SendClientMessage(playerid, -1, string);

}

if(PlayerInfo[pAdmin] == 4)

    {

format(string, 256, ""MOV2"ID: %d | Head Admin | Nume: %s", i, sendername);

SendClientMessage(playerid, -1, string);

}

if(PlayerInfo[pAdmin] == 1337)

    {

format(string, 256, ""MOV2"ID: %d | Co-Owner | Nume: %s", i, sendername);

SendClientMessage(playerid, -1, string);

}

}

}

}

else

{

    SendClientMessage(playerid, -1, ""ALBASTRU2"Nu esti conectat !");

}

}

return 1;

}[/pawn]

[pawn] if (strcmp(cmd, "/helpers", true) == 0)

    {

        if(IsPlayerConnected(playerid))

    {

        if(gPlayerLogged[playerid] != 0)

        {

SendClientMessage(playerid, -1, ""VERDE2"|_______________"PORTOCALIU"Helperi Online"VERDE2"_______________|");

    for(new i = 0; i < MAX_PLAYERS; i++)

    {

    if (IsPlayerConnected(i))

    {

    GetPlayerName(i, sendername, sizeof(sendername));

    if(PlayerInfo[pHelper] == 1)

    {

    format(string, 256, ""PORTOCALIU2"ID: %d | Trial Helper | Nume: %s", i, sendername);

        SendClientMessage(playerid, -1, string);

    }

      if(PlayerInfo[pHelper] == 2)

    {

    format(string, 256, ""PORTOCALIU2"ID: %d | Good Helper | Nume: %s", i, sendername);

        SendClientMessage(playerid, -1, string);

    }

  if(PlayerInfo[pHelper] == 3)

    {

    format(string, 256, ""PORTOCALIU2"ID: %d | Best Helper | Nume: %s", i, sendername);

        SendClientMessage(playerid, -1, string);

    }

  if(PlayerInfo[pHelper] == 4)

    {

    format(string, 256, ""PORTOCALIU2"ID: %d | Hard Helper  | Nume: %s", i, sendername);

        SendClientMessage(playerid, -1, string);

    }

  if(PlayerInfo[pHelper] > 4)

    {

    format(string, 256, ""PORTOCALIU2"ID: %d | Leader Helpers %d  | Nume: %s", i, PlayerInfo[pHelper], sendername);

        SendClientMessage(playerid, -1, string);

    }

}

}

}

else

{

    SendClientMessage(playerid, -1, ""ALBASTRU2"Nu esti conectat !");

}

}

    return 1;

    }[/pawn]

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.