Admin Tags
#1

pawn Код:
CMD:atag(playerid, params[])
{
    new string[128];
    new text;
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
    if(aDuty[playerid]) return SendClientMessage(playerid, COLOR_GREY, "You have to be OFF admin duty to use this command!");
    if(sscanf(params, "s[24]", text)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /atag [admin tag]");
    format(string, sizeof(string), "AdmWarn: %s has changed his admin tag to %s. ", RPN(playerid), text);
    SendAdminMessage(COLOR_DARKRED, 1, string);
    PlayerInfo[playerid][aMask] = text;
    return 1;
}
Hello, I'm getting Problems..
Well, I want to save the TAG in ma' .ini files.
But the problem is, It's saving some random Characters.
Can somebody help me with it?
Reply


Messages In This Thread
Admin Tags - by faff - 07.06.2013, 16:56
Re: Admin Tags - by faff - 07.06.2013, 17:26
Re: Admin Tags - by JamesS - 07.06.2013, 17:43
Re: Admin Tags - by faff - 07.06.2013, 18:54
Re: Admin Tags - by gtakillerIV - 07.06.2013, 19:28
Re: Admin Tags - by Facerafter - 07.06.2013, 20:00

Forum Jump:


Users browsing this thread: 1 Guest(s)