need help
#3

pawn Код:
if(strcmp(cmd, "/help",true)==0)
    {
                   new string[64];
                   GetPlayerName(playerid, sendername, sizeof(sendername));
                   format(string,sizeof(string)," %s used /help");
        SendClientMessage(playerid, COLOR," you used /help");
               }
               for(new i = 0; i < MAX_PLAYERS; i++)
    {
            if(PlayerInfo[i][pAdmin] >= 1)
            {
                SendClientMessage(i, COLOR, string);
            }
    return 1;
    }
Change pAdmin to how your script detects if a players an admin
Mkae sure you have
new sendername[MAX_PLAYER_NAME];
at the top of onplayercommandtext

This sends a message to all the admins online telling them that the player used /help..


_______________________________________
Please rep+ me!!! hit the little star under my name
Reply


Messages In This Thread
need help - by Artak - 09.03.2012, 08:14
Re: need help - by Marco_Valentine - 09.03.2012, 08:29
Re: need help - by Marco_Valentine - 09.03.2012, 08:36
Re: need help - by Artak - 09.03.2012, 08:51
Re: need help - by Marco_Valentine - 09.03.2012, 08:55
Re: need help - by Artak - 09.03.2012, 09:03
Re: need help - by eesh - 09.03.2012, 09:06

Forum Jump:


Users browsing this thread: 2 Guest(s)