/a not working
#1

please help
pawn Код:
if(strcmp(cmd, "/a", true) == 0)
        {
        if(pInfo[playerid][Admin] >= 0)
        {
        tmp = strtok(cmdtext,idx);
        new text;
            text = strval(tmp);
         if(!strlen(tmp))
         {
             SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /a [text]");
         }
         else
         {
                GetPlayerName(playerid, adminname, sizeof(adminname));
                format(string,sizeof(string),"Adminchat (%s): %s", adminname, text);
                MessageToAdmins(purple,string);
                }
         }
         return 1;
}
pawn Код:
public MessageToAdmins(color,const string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i) == 1)
    if(pInfo[i][Admin] >= 0)
    SendClientMessage(i, color, string);
    }
    return 1;
}
Reply


Messages In This Thread
/a not working - by geerdinho8 - 05.01.2012, 15:42
Re: /a not working - by [MG]Dimi - 05.01.2012, 15:49
Re: /a not working - by geerdinho8 - 05.01.2012, 15:55
Re: /a not working - by [MG]Dimi - 05.01.2012, 15:56
Re: /a not working - by Jochemd - 05.01.2012, 15:58
Re: /a not working - by geerdinho8 - 05.01.2012, 16:00
Re: /a not working - by geerdinho8 - 05.01.2012, 16:06
Re: /a not working - by [MG]Dimi - 05.01.2012, 16:08
Re: /a not working - by geerdinho8 - 05.01.2012, 16:29
Re: /a not working - by Gh05t_ - 05.01.2012, 16:45

Forum Jump:


Users browsing this thread: 1 Guest(s)