Whisper problem
#4

i made this shorter and im sure this will work
pawn Код:
CMD:w(playerid,params[])
{
                new Nam[MAX_PLAYER_NAME],Float:X,Float:Y,Float:Z,message[128],str[128];
        if(sscanf(params,"s[128",message)) return SendClientMessage(playerid,COLOR_LIGHTBLUE,"USAGE: {FFFFFF}/w [text]");
        GetPlayerName(playerid,Nam,sizeof(Nam));
        GetPlayerPos(playerid,X,Y,Z);
        format(str,sizeof(str),"%s Whispers: %s",Nam, message);
        for(new i=0; i<MAX_PLAYERS; i++)
        {
                if(IsPlayerInRangeOfPoint(i, 5.0, X,Y,Z))
                {
                    SendClientMessage(i,COLOR_ORANGE,str);
                     SetPlayerChatBubble(playerid,str, COLOR_ORANGE, 10.0, 10000);
                }
        }
        return 1;
}
rep me please
Reply


Messages In This Thread
Whisper problem - by Bogdan1992 - 16.01.2012, 16:55
Re: Whisper problem - by rinori - 16.01.2012, 19:16
Re: Whisper problem - by Bogdan1992 - 16.01.2012, 20:26
Re: Whisper problem - by Tanush123 - 16.01.2012, 21:24
Re: Whisper problem - by Bogdan1992 - 16.01.2012, 21:36
Re: Whisper problem - by Tanush123 - 17.01.2012, 00:51
Re: Whisper problem - by 2KY - 17.01.2012, 01:17

Forum Jump:


Users browsing this thread: 2 Guest(s)