Some help..
#1

1: Could someone tell how to make the /report command?
2: How can i send admin commands? For example: When the player types /healme i want a command send to all online admins sying that the: player[playerid] healed!
Reply
#2

What variable/function are you using to specify who is an admin or not? What command processor are you using (zcmd, strcmp, ycmd, dcmd)? Are you using sscanf?
Reply
#3

Basicly i am using 0admin but i want to make some more commands like /healme and i cant make them on this admin script because its too big for my computer to compile it...
Reply
#4

For your 1st problem check this : link1 link2

For your 2nd problem ! I tested it and it works ! I placed that it sends to only rcon admins but PM if you want it to send all level admins !
pawn Код:
COMMAND:healme(playerid, params[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerAdmin(i))
        {
            new string[64], pName[MAX_PLAYER_NAME];
            GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
            format(string,sizeof string,"%s has just healed himself!",pName);
            SetPlayerHealth(playerid, 100);
            SendClientMessageToAll(COLOR_GREEN,string);
        }
        else
        {
            SetPlayerHealth(playerid, 100);
        }
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)