[HELP] Multiple inputs per command
#2

https://sampwiki.blast.hk/wiki/SendClientMessageToAll

Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(cmdtext, "/msgall", true) == 0)
{
// Send a message to everyone.
SendClientMessageToAll(0xDEEE20FF, "Hello.");
return 1;
}
return 0;
}

If you have zcmd

pawn Код:
CMD:am(playerid, params[]
{
    new string[128];
    if(isnull(params)) return SendClientMessage(playerid, -1, "USAGE: /am [message]");
    format(string, sizeof(string), "%s", params);
    SendClientMessageToAll(COLOR_LIGHTBLUE, string);
    return 1;
}
Else

pawn Код:
if (strcmp("/adminmessage", cmdtext, true) == 0 || strcmp(cmdtext,"/am",true)==0)
{
     new string[128];
     format(string, sizeof(string), "%s", params);
     SendClientMessageToAll(COLOR_LIGHTBLUE, string);
     return 1;
}
Reply


Messages In This Thread
[HELP] Multiple inputs per command - by Nathan_Taylor - 26.02.2013, 03:48
Re: [HELP] Multiple inputs per command - by [TC]XxJuggaloxX - 26.02.2013, 04:05
Re: [HELP] Multiple inputs per command - by Nathan_Taylor - 26.02.2013, 04:12
Re: [HELP] Multiple inputs per command - by [TC]XxJuggaloxX - 26.02.2013, 04:29
Re: [HELP] Multiple inputs per command - by Nathan_Taylor - 26.02.2013, 04:35
Re: [HELP] Multiple inputs per command - by [TC]XxJuggaloxX - 26.02.2013, 05:10

Forum Jump:


Users browsing this thread: 1 Guest(s)