SendClientMessage won't work.
#3

pawn Код:
CMD:report(playerid, params[])
{
    new sendername[MAX_PLAYER_NAME], string[128];
    if(isnull(params)) return SendClientMessage(playerid, COLOR_LIGHTBLUE,"[SYNTAX]: /report [Message Here]");
    GetPlayerName(playerid, sendername, sizeof(sendername));
    strreplace(sendername, '_', ' ');
    SendClientMessage(playerid, COLOR_GOLD, "Your report message has been sent to all the online Administrators.");
    format(string, sizeof(string), "Report Message from: %s: %s", sendername, params);
        new i;
    for(i=0; i < MAX_PLAYERS; i++){
        if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdminLevel] >= 1) SendClientMessage(i, COLOR_GOLD, string);    
    }
    return 1;
}
//too late..
Reply


Messages In This Thread
SendClientMessage won't work. - by Gooday - 17.08.2012, 10:06
Re: SendClientMessage won't work. - by FalconX - 17.08.2012, 10:12
Re: SendClientMessage won't work. - by im - 17.08.2012, 10:13
Re: SendClientMessage won't work. - by Dan. - 17.08.2012, 10:14
Re: SendClientMessage won't work. - by Gooday - 17.08.2012, 10:24
Re: SendClientMessage won't work. - by Dan. - 17.08.2012, 10:28
Re: SendClientMessage won't work. - by JaKe Elite - 17.08.2012, 10:30

Forum Jump:


Users browsing this thread: 1 Guest(s)