SA-MP Forums Archive
Admin Tag - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Admin Tag (/showthread.php?tid=381309)



Admin Tag - Laure - 29.09.2012

Double Post Soz.


Re: Admin Tag - .v - 29.09.2012

Can you show us your command for ban or kick?

Else try.


pawn Код:
CMD:tag(playerid, params[])
{
 if(IsPlayerAdmin(playerid)
 {
    new player, tagname[20];
    if(sscanf(params, "us", player, tagname)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /tag [Playerid] [Tag]");
    new str[128], name[MAX_PLAYER_NAME];
    GetPlayerName(player, name, sizeof(name));
    format(str, sizeof(str), "[%s]%s", tagname, name);
    SetPlayerName(player, str);
    return 1;
 }
    else
    {
        SendClientMessage(playerid, WHITE,"You must login as administrator");
    }
}