sendclientmessagetoall with the input text?
#4

Your using ZCMD, not 'CMD: style commands'.

Alright, so if I understand you clearly, you'd like a command, in which the text you input would then Send a Message to everyone connected on the server. I'll be doing it in ZCMD and sscanf.

pawn Код:
CMD:sayhi(playerid, params[])
{
        new Str[128];
        if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_GREY, "USAGE: /sayhi [message]");
        format(Str, sizeof(Str), "%s", params);
        SendClientMessageToAll(COLOR_WHITE, Str);
    }
    return 1;
}
Reply


Messages In This Thread
sendclientmessagetoall with the input text? - by Jack_Leslie - 10.07.2011, 04:30
Re: sendclientmessagetoall with the input text? - by Calgon - 10.07.2011, 04:41
Re: sendclientmessagetoall with the input text? - by Jack_Leslie - 10.07.2011, 04:46
Re: sendclientmessagetoall with the input text? - by Kush - 10.07.2011, 04:46
Re: sendclientmessagetoall with the input text? - by Gertin - 10.07.2011, 08:20
Re: sendclientmessagetoall with the input text? - by Calgon - 10.07.2011, 08:26
Re: sendclientmessagetoall with the input text? - by jameskmonger - 10.07.2011, 08:39

Forum Jump:


Users browsing this thread: 1 Guest(s)