Admin help
#4

pawn Код:
// in top you gm
#include <ladmin>
// Command
if(strcmp("/aduty_on", cmdtext, true, 10) == 0)
{
    if(!IsPlayerAdmin(playerid))
        if(!IsPlayerLuxAdm(playerid,/* level admin */ 4))
            return SendClientMessage(playerid, 0xFF0000,"You are not admin");
    new pName[MAX_PLAYER_NAME];
    new string[300];
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "{6EF83C}Administrator %s is now on duty", pName);
    SendClientMessageToAll(0xEB0000FF, string);
    SetPlayerColor(playerid,0xFF0037FF);
    GivePlayerWeapon(playerid,38,500000000000000);
    SetPlayerSkin(playerid,294);
    SetPlayerColor(playerid,0x00FFC8FF);
    return 1;
 }
Reply


Messages In This Thread
Admin help - by SpiderWalk - 02.05.2011, 20:48
Re: Admin help - by System64 - 02.05.2011, 20:58
Re: Admin help - by SpiderWalk - 02.05.2011, 20:59
Re: Admin help - by TheGarfield - 02.05.2011, 21:06
Re: Admin help - by SpiderWalk - 02.05.2011, 21:19
Re: Admin help - by SpiderWalk - 02.05.2011, 21:29
Re: Admin help - by SpiderWalk - 02.05.2011, 21:36
Re: Admin help - by SpiderWalk - 02.05.2011, 21:48
Re: Admin help - by chrism11 - 02.05.2011, 21:54
Re: Admin help - by SpiderWalk - 02.05.2011, 21:55

Forum Jump:


Users browsing this thread: 3 Guest(s)