Need help with OnPlayerText
#7

Quote:
Originally Posted by Ironboy
Посмотреть сообщение
pawn Код:
public OnPlayerText(playerid, text[])
{
    new string[256], pname[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pname,sizeof(pname));
    for(new i=0;i<MAX_PLAYERS;i++) {
    if(IsPlayerConnected(i) && GetDistanceBetweenPlayers(playerid,i) < 10 ) { //those who stands within 10 metres can only see.
    format(string, sizeof(string), "[WHISPER] %s[%d]: %s",pname,playerid,params);
    SendClientMessage(i,COLOR_YELLOW,string);}}
    return 1;
}
For some reason whenever someone types the text it sends their message twice.
Reply


Messages In This Thread
Need help with OnPlayerText - by danielpalade - 11.01.2015, 14:23
Re: Need help with OnPlayerText - by danish007 - 11.01.2015, 14:42
Re: Need help with OnPlayerText - by MD5 - 11.01.2015, 14:45
Re: Need help with OnPlayerText - by danielpalade - 11.01.2015, 14:48
Re: Need help with OnPlayerText - by Ironboy - 11.01.2015, 15:05
AW: Re: Need help with OnPlayerText - by Nero_3D - 11.01.2015, 15:16
Re: Need help with OnPlayerText - by danielpalade - 11.01.2015, 15:19
Re: AW: Re: Need help with OnPlayerText - by Ironboy - 11.01.2015, 15:23

Forum Jump:


Users browsing this thread: 2 Guest(s)