SendClientMessage To All Players In A Virtual World
#1

SendClientMessage To All Players In A Virtual World

This is what i would like:

pawn Код:
if(strcmp(cmd, "/stuntchat", true) == 0 || strcmp(cmd, "/sc", true) == 0)
     {
pawn Код:
if ( GetPlayerVirtualWorld( playerid ) == 5 )
        {
But, i am not too sure what the code in the command would be...

pawn Код:
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: (/sc)/stuntchat [text]");
format(string, sizeof(string), "[StuntChat] %s: %s]",PlayerName(playerid),tmp);
SendClientMessage(playerid,COLOR_YELLOW,string);
The above code does not work. would anyone be able to help me make the code??

I would like the command /stuntchat to send a message to all the people in virtual world 5.

Thank you for the help.
Reply


Messages In This Thread
SendClientMessage To All Players In A Virtual World - by lewismichaelbbc - 23.01.2011, 12:44
Re: SendClientMessage To All Players In A Virtual World - by Not available - 23.01.2011, 12:45

Forum Jump:


Users browsing this thread: 1 Guest(s)