SendClientMessage
#2

Код:
new Float:x, Float:y, Float:z;
new Float:px, Float:py, Float:pz;
GetPlayerPos(playerid, x, y, z);
for(new i=0; i < MAX_PLAYERS; i++)
{
   if(IsPlayerConnected(i)&&i!=playerid){
    if(IsPlayerInRangeOfPoint(i, 3.0, x, y, z))
    {
       SendClientMessage(playerid, grey, "blablabla");
       SendClientMessage(i, grey, "blablabla2");
    }
}
}
//note, this code doesn't use px, py and pz. Don't know why you created them, but there you go.
Reply


Messages In This Thread
SendClientMessage - by Sascha - 01.05.2010, 08:20
Re: SendClientMessage - by maij - 01.05.2010, 09:18
Re: SendClientMessage - by Sascha - 01.05.2010, 09:35

Forum Jump:


Users browsing this thread: 1 Guest(s)