[HELP]Server message/MOLE
#3

Quote:
Originally Posted by (*|Flake|*)
Посмотреть сообщение
pawn Код:
CMD:say(playerid, params[])
{
    if(PlayerStat[playerid][AdminLevel] >= 4) //If the players admin level is 4
    {
        new str[256]; //Defining the string that'll act as your message
        if(sscanf(params, "s", str)) return SendClientMessage(playerid, COLOR_LIGHTRED, "Usage: /Say [Global Text]");
        format(str, 256, "Server: %s",  params);
        SendClientMessageToAll(-1, str);
    }
    else SendClientMessage(playerid, "You're not a high enough.. blah blah");
    return 1;
}
Haven't tested it but it should work..
Your SendClientMessage is wrong..

replace with:
SendClientMessage(playerid, COLOR_LIGHTRED, "You're not a high enough.. blah blah");
Reply


Messages In This Thread
[HELP]Server message/MOLE - by JohnD123 - 11.04.2014, 04:08
Re: [HELP]Server message/MOLE - by Flake. - 11.04.2014, 04:17
Re: [HELP]Server message/MOLE - by Mriss - 11.04.2014, 04:18
Re: [HELP]Server message/MOLE - by Flake. - 11.04.2014, 04:19
Re: [HELP]Server message/MOLE - by Equuuuin0X - 11.04.2014, 11:02

Forum Jump:


Users browsing this thread: 1 Guest(s)