[VORTEX GM] How to change local OOC chat.
#8

Quote:
Originally Posted by ScopE iMarkx
Посмотреть сообщение
do

pawn Код:
command(b, playerid, params[])
it will fail, because you have to type COMMAND in caps

anyway try this one (not tested)
pawn Код:
COMMAND:b(playerid, params[])
{
    if(Player[playerid][PrisonID] == 1) return SendClientMessage(playerid, WHITE, "You may not use this channel right now.");
    else if(strlen(params) > 0)
    {
        new string[128];
        format(string, sizeof(string), "%s says: ((%s))", GetName(playerid), params);
        NearByMessage(playerid, WHITE, string);
    }
    else SendClientMessage(playerid, 0xFF0000FF, "SYNTAX: /b [message]");
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)