Local chat distance script
#1

Ok so im making a small local chat, i think ive nailed it, apart from i have no idea where to put or how to make a distance thing, so that only people within a certain range can see it


Код:
if(strcmp(cmdtext,"/b",true)==0)
{
 new tmp[256];
 new string[256];
 new pName[MAX_PLAYER_NAME];/
 new idx;/
 tmp = strtok(cmdtext,idx);
 if(!strlen(tmp)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE:/b [Local OOC Message]");
 if(IsPlayerConnected(playerid))
 {
   GetPlayerName(playerid,pName,sizeof(pName));
   format(string,sizeof(string),"%s Says: (( %s )) !!",pName,cmdtext[5]);
   SendClientMessageToAll(COLOR_WHITE,string)
ProxDetector(50.0, playerid, string,COLOR1);
 }
 return 1;
}
Thats whati have, No distance though (i think) so its jsut going out to the server
Reply


Messages In This Thread
Local chat distance script - by Robin_J - 11.02.2009, 18:30
Re: Local chat distance script - by MenaceX^ - 11.02.2009, 18:33
Re: Local chat distance script - by Robin_J - 11.02.2009, 18:35
Re: Local chat distance script - by MenaceX^ - 11.02.2009, 18:49
Re: Local chat distance script - by Robin_J - 11.02.2009, 18:52
Re: Local chat distance script - by MenaceX^ - 11.02.2009, 19:05
Re: Local chat distance script - by Robin_J - 11.02.2009, 19:07
Re: Local chat distance script - by Robin_J - 11.02.2009, 19:45
Re: Local chat distance script - by Static_X - 12.02.2009, 00:23
Re: Local chat distance script - by Robin_J - 12.02.2009, 11:48

Forum Jump:


Users browsing this thread: 1 Guest(s)