Help with SendClientMenssageToAll
#1

I want to know how do I send a message (/news Good Morning) for all players (SendClientMenssageToAll), but just can see can if the player is in a certain region (IsPlayerInLasVenturas). Tanks!
Reply
#2

Assuming you have a function called IsPlayerInLasVenturas:

pawn Код:
SendLasVenturasMessage(color, message[])
{
    for(new playerid; playerid < MAX_PLAYERS; playerid++)
    {
        if(IsPlayerInLasVenturas(playerid))
        {
            SendClientMessage(playerid, color, message);
        }
    }
}
Reply
#3

@SuperViper do you need a function? easiest way to do it? Lets say if player is range of point? or something?
Reply
#4

To facilitate understanding, I say to you will serve. It will serve to the organization "Reporter - NEWS", and to avoid mixing the news of los santos, san fierro las ventura on the chat, I want the player see only the news of the city that he is.
Reply
#5

Quote:
Originally Posted by MatZZPL
Посмотреть сообщение
@SuperViper do you need a function? easiest way to do it? Lets say if player is range of point? or something?
Perhaps you should read his post.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)