/r Chat
#2

So a global chat?

Here:

pawn Код:
command(r, playerid, params[])
{
    new message[128], string[256], pName[24];
    GetPlayerName(playerid, pName, 24);
    if(sscanf(params, "s", message)) return SendClientMessage(playerid, GREY, "Server: /r(adio) [text]");
    {
        format(string, sizeof(string), "[Radio] %s says: %s", pName, message);
        SendClientMessageToAll(GREY, string);
    }
    return 1;
}
Try that.
Reply


Messages In This Thread
/r Chat - by Davman - 14.01.2012, 21:58
Re: /r Chat - by iGetty - 14.01.2012, 22:01
Re: /r Chat - by Scenario - 14.01.2012, 22:02
Re: /r Chat - by Davman - 14.01.2012, 22:04
Re: /r Chat - by iGetty - 14.01.2012, 22:05
Re: /r Chat - by Davman - 14.01.2012, 22:11
Re: /r Chat - by iGetty - 14.01.2012, 22:13
Re: /r Chat - by Davman - 14.01.2012, 22:13
Re: /r Chat - by vincee - 14.01.2012, 22:20
Re: /r Chat - by Steven82 - 14.01.2012, 22:25

Forum Jump:


Users browsing this thread: 1 Guest(s)