/asay command [REP+]
#10

Quote:
Originally Posted by Twisted_Insane
View Post
pawn Code:
COMMAND:a(playerid,params[])
{
    if(PlayerAcc[playerid][AdminLevel] >= 1) //replace THIS WITH YOUR own admin variable of your enum
    {
       
            new Announce[50];
            if(sscanf(params, "s[50]",Announce)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /asay [message]");

                new pname[MAX_PLAYER_NAME];
                GetPlayerName(playerid,pname,sizeof(pname));
                new astring[256];
                format(astring,sizeof(astring),"* Admin %s(%d): %s",pname,playerid,Announce);
                SendClientMessageToAll(ANNOUNCEMENT,astring);
           
    }
    else SendClientMessage(playerid,red,"ERROR: You must be an Admin level 1 or higher to perform this command!");
    return 1;
}
If your IQ is above 20, then everything should work...
lel 20.
Reply


Messages In This Thread
/asay command [REP+] - by [FoR]EveR - 22.03.2012, 15:29
Re: /asay command [REP+] - by Bogdan1992 - 22.03.2012, 15:31
Re: /asay command [REP+] - by Twisted_Insane - 22.03.2012, 15:32
Re: /asay command [REP+] - by [FoR]EveR - 22.03.2012, 15:34
Re: /asay command [REP+] - by AlTy - 22.03.2012, 15:35
Re: /asay command [REP+] - by Bogdan1992 - 22.03.2012, 15:37
Re: /asay command [REP+] - by [FoR]EveR - 22.03.2012, 15:37
Re: /asay command [REP+] - by Edvin - 22.03.2012, 15:38
Re: /asay command [REP+] - by Ronaldo_raul™ - 22.03.2012, 15:43
Re: /asay command [REP+] - by XinGeR - 31.12.2014, 13:00

Forum Jump:


Users browsing this thread: 2 Guest(s)