Help With Announce
#4

pawn Code:
if(strcmp(cmd,"/at",true)==0)
    {
    new sendername[128];
    new string[128];
        IsPlayerAdminLevel(playerid, 2);
        {

            GetPlayerName(playerid, sendername, sizeof(sendername));
            new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[64];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = cmdtext[idx];
                idx++;
            }
            result[idx - offset] = EOS;
            if(!strlen(result))
            {
                SendClientMessage(playerid, COLOR_LIGHTRED, "USAGE: /at message");
                return 1;
            }
            format(string, sizeof(string), "[ ! ] %s", result);
            SendClientMessageToAll(COLOR_YELLOW,string);
        }
        return 1;
    }
..................................dots............ ..............................
Reply


Messages In This Thread
Help With Announce - by Hiitch - 29.06.2009, 15:46
Re: Help With Announce - by James_Alex - 29.06.2009, 17:59
Re: Help With Announce - by Hiitch - 29.06.2009, 19:17
Re: Help With Announce - by coole210 - 29.06.2009, 21:51

Forum Jump:


Users browsing this thread: 2 Guest(s)