11.02.2009, 18:30
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
Thats whati have, No distance though (i think) so its jsut going out to the server
Код:
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;
}

