Need help with chat commands. [+REP]
#8

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext,"/say",true,4))
    {
        if(!cmdtext[4]) return SendClientMessage(playerid,-1,"USAGE:/say [text]");
        new string[128], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name))
        format(string, sizeof(string), "(( %s)) says: %s ", name, cmdtext[5]);
        return SendClientMessageToAll(0xffffff, string);
    }
    return 1;
}
guess it'll work
Reply


Messages In This Thread
Need help with chat commands. [+REP] - by Biggy54 - 28.09.2014, 22:51
Re: Need help with chat commands. [+REP] - by SWGamer - 29.09.2014, 08:55
Re: Need help with chat commands. [+REP] - by Biggy54 - 29.09.2014, 11:06
Re: Need help with chat commands. [+REP] - by SWGamer - 29.09.2014, 11:52
Re: Need help with chat commands. [+REP] - by Josh_Main - 29.09.2014, 15:09
Re: Need help with chat commands. [+REP] - by MeCom - 29.09.2014, 15:19
Re: Need help with chat commands. [+REP] - by Biggy54 - 29.09.2014, 16:29
Re: Need help with chat commands. [+REP] - by DavidBilla - 29.09.2014, 18:06
Re: Need help with chat commands. [+REP] - by Biggy54 - 29.09.2014, 19:53
Re: Need help with chat commands. [+REP] - by YanLanger - 29.09.2014, 20:22

Forum Jump:


Users browsing this thread: 2 Guest(s)