Jump to content

Admins


Casio

Recommended Posts

Salut,

Imi spuneti si mie va rog frumos cum fac aici ca atunci cand dau /admins sa imi apara numele adminului respectiv?

 

Spoiler

{
    new AdminName[128];
    if(PlayerStat[playerid][Aname] >= 1)
    {
       if(PlayerStat[playerid][Aname] == 1) AdminName = "{FF1919}Nume{FFFFFF}";
       if(PlayerStat[playerid][Aname] == 2) AdminName = "{FF1919}Nume{FFFFFF}";
       if(PlayerStat[playerid][Aname] == 3) AdminName = "{70C470}Nume{FFFFFF}";
       if(PlayerStat[playerid][Aname] == 4) AdminName = "{70C470}Nume{FFFFFF}";
       if(PlayerStat[playerid][Aname] == 5) AdminName = "{70C470}Nume{FFFFFF}";
       if(PlayerStat[playerid][Aname] == 6) AdminName = "{70C470}Nume{FFFFFF}";
       if(PlayerStat[playerid][Aname] == 7) AdminName = "{70C470}Nume{FFFFFF}";
       if(PlayerStat[playerid][Aname] == 8) AdminName = "{FF1919}Nume{FFFFFF}";
       if(PlayerStat[playerid][Aname] == 9) AdminName = "{00FFFF}Nume{FFFFFF}";
       if(PlayerStat[playerid][Aname] == 10) AdminName = "{00FFFF}Nume{FFFFFF}";
       if(PlayerStat[playerid][Aname] == 11) AdminName = "{00FFFF}Nume{FFFFFF}";
       if(PlayerStat[playerid][Aname] == 12) AdminName = "{00FFFF}Nume{FFFFFF}";
       if(PlayerStat[playerid][Aname] == 13) AdminName = "{00FFFF}Nume{FFFFFF}";
       if(PlayerStat[playerid][Aname] == 999) AdminName = "{00FFFF}Nume{FFFFFF}";
    }

 

Link to comment
Share on other sites

Acum 19 minute, Banditul a spus:

Ce incerci sa faci mai exact? Comanda /admins?

Da. Atunci cand dau /admins sa apara numele celui care are admin.

Am pus codul in postul de mai sus!

Edited by Casio
Link to comment
Share on other sites

1 hour ago, Casio said:

Daca renunt la culori, care este formatul?

{
    if(PlayerStat[playerid][Aname] >= 1)
    {
       	new name[MAX_PLAYER_NAME];
       	GetPlayerName(playerid,name, sizeof(name));
		SendClientMessage(playerid, -1, name);
    }
}

 

  • Upvote 1

Retras

Link to comment
Share on other sites

On 5/15/2017 at 0:14 PM, Casio said:

A nu ca ma enervez si nu mai fac nimic.

Nimic nu imi iese frate.. nu stiu de ce nu merge..

Faci așa:

{
    format(gString, sizeof(gString), "{00FFFF}%s{FFFFFF}", variabila_nume_admin);
    AdminName = gString;
}

 

  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.