Jump to content
  • 0

inca un ajutor de la voi pls


Question

Posted

Am vazut pe unele server ca atunci cand un helper/admin se pune /onduty apare in lista /helpers respectiv /admins -On DUTY ! Cum as putea sa fac si eu sa apara asa :D.

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

9 answers to this question

Recommended Posts

Posted

Pentru a te ajuta cu comanda asta trebuie sa dai prima data comanda cu care te pui On Duty daca ai asa ceva.

Uite asta e comanda : [pawn]if(strcmp(cmd, "/aod", true) == 0)

{

if (PlayerInfo[playerid][pAdmin] >= 1)

  {

    if(AdminDuty[playerid] == 1)

    {

                GetPlayerName(playerid, sendername, sizeof(sendername));

    format(string, sizeof(string), "{0033FF}Admin {FFFFFF}%s {0033FF} is now off duty.", sendername,playerid);

                SendClientMessageToAll(COLOR_DBLUE,string);

  AdminDuty[playerid] = 0;

SetPlayerHealth(playerid,100);

SetPlayerArmour(playerid,0);

SetPlayerToTeamColor(playerid);

ResetPlayerWeapons(playerid);

            }

    else

    {

                GetPlayerName(playerid, sendername, sizeof(sendername));

    format(string, sizeof(string), "{FFCCCC}Admin {FFFFFF}%s {FFCCCC}is now on duty.",sendername,playerid);

SendClientMessageToAll(0xFAAFBEFF,string);

  AdminDuty[playerid] = 1;

                SetPlayerArmour(playerid, 10000000);

                SetPlayerHealth(playerid, 10000000);

                SetPlayerColor(playerid,0xFAAFBEFF);

format(string, sizeof(string),"[ADMIN]: %s is now on Admin Duty", sendername);

ABroadCast(COLOR_LIGHTRED, string, 1);

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

                {

                if(IsPlayerConnected(i))

        {

      SetPlayerMarkerForPlayer( i,playerid,0xFAAFBEFF );

    }

        }

if(PlayerInfo[playerid][pAdmin] >= 1337)

{

ResetPlayerWeapons(playerid);

GivePlayerWeapon(playerid, 31, 10000);

GivePlayerWeapon(playerid, 29, 10000);

GivePlayerWeapon(playerid, 24, 10000);

GivePlayerWeapon(playerid, 28, 10000);

GivePlayerWeapon(playerid, 8, 1);

}

    }

}

else

{

SendClientMessage(playerid,COLOR_GREY,"Your not an admin !");

}

return 1;

}[/pawn]

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

Posted

uite aici e comanda /admins pentru adminii care sunt on duty

[pawn]

if (!strcmp(cmd, "/admins", true))

{

new counth;

SCM(playerid, 0xC3DF00AA, "|______________Admins Online______________|");

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

{

    if(IsPlayerConnected(ply))

    {

if(PlayerInfo[ply][pAdmin] == 1)

{

  new duty[5];

if(AdminDuty[ply]) { duty = "On"; } else { duty = "Off"; }

    new tmpstr1[128];

    new pname[MAX_PLAYER_NAME];

    GetPlayerName(ply,pname,sizeof(pname));

format(tmpstr1,sizeof(tmpstr1),"Admin: %s - [Trainee Admin] [Level 1] - %s-Duty",pname,duty);

SCM(playerid,0xDFE200FF,tmpstr1);

counth++;

}

}

}

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

{

if(PlayerInfo[ply][pAdmin] == 2)

{

  if(IsPlayerConnected(ply))

    {

  new duty[5];

                    new pname[MAX_PLAYER_NAME];

if(AdminDuty[ply]) { duty = "On"; } else { duty = "Off"; }

    GetPlayerName(ply,pname,sizeof(pname));

    new tmpstr2[128];

format(tmpstr2,sizeof(tmpstr2),"Admin: %s - [Low Admin] [Level 2] - %s-Duty",pname,duty);

SCM(playerid,0x006BF6AA,tmpstr2);

counth++;

}

}

}

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

  {

  if(PlayerInfo[ply][pAdmin] == 3)

  {

    if(IsPlayerConnected(ply))

    {

  new duty[5];

  new pname[MAX_PLAYER_NAME];

if(AdminDuty[ply]) { duty = "On"; } else { duty = "Off"; }

      GetPlayerName(ply,pname,sizeof(pname));

      new tmpstr3[128];

  format(tmpstr3,sizeof(tmpstr3),"Admin: %s - [Normal Admin] [Level 3] - %s-Duty",pname,duty);

  SCM(playerid,0x796600FF,tmpstr3);

  counth++;

}

}

}

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

  {

  if(PlayerInfo[ply][pAdmin] >= 4 && PlayerInfo[ply][pAdmin] <= 1336)

  {

  if(IsPlayerConnected(ply))

    {

  new duty[5]; new pname[MAX_PLAYER_NAME];

if(AdminDuty[ply]) { duty = "On"; } else { duty = "Off"; }

    GetPlayerName(ply,pname,sizeof(pname));

      new tmpstr4[128];

  format(tmpstr4,sizeof(tmpstr4),"Admin: %s - [High Admin] [Level 4] - %s-Duty",pname,duty);

  SCM(playerid,0xC3F6B3AA,tmpstr4);

  counth++;

}

}

}

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

  {

  if(PlayerInfo[ply][pAdmin] == 1337)

  {

    if(IsPlayerConnected(ply))

    {

  new duty[5]; new pname[MAX_PLAYER_NAME];

if(AdminDuty[ply]) { duty = "On"; } else { duty = "Off"; }

  GetPlayerName(ply,pname,sizeof(pname));

    new tmpstr5[128];

  format(tmpstr5,sizeof(tmpstr5),"Admin: %s - [Lead Admin] [Level 1337] - %s-Duty",pname,duty);

  SCM(playerid,COLOR_RED,tmpstr5);

    counth++;

}

}

}

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

  {

  if(PlayerInfo[ply][pAdmin] == 1338)

  {

    if(IsPlayerConnected(ply))

    {

  new duty[5]; new pname[MAX_PLAYER_NAME];

if(AdminDuty[ply]) { duty = "On"; } else { duty = "Off"; }

      GetPlayerName(ply,pname,sizeof(pname));

      new tmpstr6[128];

  format(tmpstr6,sizeof(tmpstr6),"Admin: %s - [Head Admin] [Level 1338] - %s-Duty",pname,duty);

  SCM(playerid,0xE4BCD3AA,tmpstr6);

  counth++;

}

}

}

}

[/pawn]

Asta e in cazul in care tu ai rank-urile de admin 1,2,3,4,1336,1337,1338

Iar pentru helper trebuie sa creezi o comanda ca si cum e pentru admin /aod si modifici ce ti-am dat eu mai sus pentru /helpers

Posted

Nu merge , am pus comanda data de tine si tot nu arata ON DUTY :-|

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

Posted

da am dat sigur /aod si NU , nu am nici o eroare la compilare

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

Posted

Deci apare ca si si inainte Lista Admini:

                                        Owner : xDevil

Eu vreau sa apara asa atunci cand se pune /aod : Lista Admini:

                                                                                Owner: xDevil - On DUTY

                                                                                Admin 1 : - On DUTY

Deci sa apara acel " On DUTY " cand este /aod !

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

Posted

Gata sa rezolvat , mersi mult , a mers dupa al2lea rr la server , lol :P ! Totul e bine cand se termina cu bine :P!

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

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.