Help with SendClientMenssageToAll - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with SendClientMenssageToAll (
/showthread.php?tid=392818)
Help with SendClientMenssageToAll -
Lucaz_Nunes - 15.11.2012
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!
Re: Help with SendClientMenssageToAll -
SuperViper - 15.11.2012
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);
}
}
}
Re: Help with SendClientMenssageToAll -
MatZZPL - 15.11.2012
@SuperViper do you need a function? easiest way to do it? Lets say if player is range of point? or something?
Re: Help with SendClientMenssageToAll -
Lucaz_Nunes - 15.11.2012
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.
Re: Help with SendClientMenssageToAll -
SuperViper - 15.11.2012
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.