Admin Name [When you go on Aduty]
#1

pawn Код:
if(strcmp(cmd, "/setadmintag", true) == 0)
    {
        if(PlayerInfo[playerid][pAdmin] <= 5) return SendClientMessage(playerid, COLOR_LIGHTRED, "* You need to be admin, to do this!");
        if(PlayerInfo[playerid][pAdmin] >= 1337)
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /setadmintag [Admin Name]");
            SetPlayerName(playerid, tmp);
            admintag = 1;
            SendClientMessage(playerid, COLOR_GREY, "* You have set your admin name!");
            return 1;
        }
        return 1;
    }

ADuty Bit
pawn Код:
if (admintag == 1)
                    {
                        new name[MAX_PLAYER_NAME];
                        GetPlayerName(playerid, name, sizeof(name));
                        SetPlayerName(playerid, name);
                    }
Can anyone tell me, That changes the whole name, how would I return the real name, when you go off aduty? That is an admin name, btw.
Reply


Messages In This Thread
Admin Name [When you go on Aduty] - by UnknownGamer - 28.11.2012, 21:18
Re: Admin Name [When you go on Aduty] - by Lz - 28.11.2012, 21:22
Re: Admin Name [When you go on Aduty] - by NumbSkull - 28.11.2012, 21:25
Re: Admin Name [When you go on Aduty] - by maramizo - 28.11.2012, 21:31
Re: Admin Name [When you go on Aduty] - by NumbSkull - 28.11.2012, 21:33
Re: Admin Name [When you go on Aduty] - by UnknownGamer - 28.11.2012, 21:34
Re: Admin Name [When you go on Aduty] - by NumbSkull - 28.11.2012, 21:38
Re: Admin Name [When you go on Aduty] - by UnknownGamer - 28.11.2012, 21:40
Re: Admin Name [When you go on Aduty] - by UnknownGamer - 28.11.2012, 21:43
Re: Admin Name [When you go on Aduty] - by maramizo - 28.11.2012, 22:14

Forum Jump:


Users browsing this thread: 3 Guest(s)