send client message to all
#7

Quote:
Originally Posted by saffierr
Посмотреть сообщение
You will have to loop through all the players with:
PHP код:
for (new 0GetPlayerPoolSize (); <= ji++) 
and then send the gametextforplayer message

To get a pplayer's name:
PHP код:
new pName [MAX_PLAYER_NAME];
GetPlayerName (playeridpNameMAX_PLAYER_NAME); 
Use GameTextForAll.

--

Above reply;

Use switch, it's faster and optimized, as well as easier to read. Add +1 in the Name variable new Name[MAX_PLAYER_NAME + 1];

PHP код:
switch(listitem)
{
    case 
0:
    {
    }
    case 
1:
    {
    }
    case 
2:
    {
    }

Reply


Messages In This Thread
send client message to all - by Lukasz56 - 05.01.2017, 17:36
Re: send client message to all - by Bolex_ - 05.01.2017, 17:41
Re: send client message to all - by Lukasz56 - 05.01.2017, 17:42
Re: send client message to all - by saffierr - 05.01.2017, 17:42
Re: send client message to all - by Bolex_ - 05.01.2017, 17:43
Respuesta: send client message to all - by Whillyrez - 05.01.2017, 17:49
Re: send client message to all - by Logic_ - 05.01.2017, 18:05

Forum Jump:


Users browsing this thread: 2 Guest(s)