Whisper command
#4

Try now
pawn Код:
COMMAND:w(playerid,params[])
{
    new string[128];
    if(sscanf(params,"s[128]",string)) return SendClientMessage(playerid,RED,"USAGE:/w [message]");
    SetPlayerChatBubble(playerid,string,YELLOW,35,10000);
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    new pName[24];
    GetPlayerName(playerid,pName,sizeof(pName));
    new string2[128];
    format(string2,sizeof(string2),"%s(%d): %s",pName,playerid,string);
    for(new i=0;i<=MAX_PLAYERS;i++)
    {
        if(IsPlayerInRangeOfPoint(i,15.0,x,y,z)) return SendClientMessage(i,YELLOW,string2);
    }
    return 1;
}
Reply


Messages In This Thread
Whisper command - by Tamer - 06.01.2013, 14:35
Re: Whisper command - by InActtive™ - 06.01.2013, 14:48
Re: Whisper command - by thefatshizms - 06.01.2013, 14:53
Re: Whisper command - by doreto - 06.01.2013, 15:24
Re: Whisper command - by GGW - 09.08.2013, 12:53

Forum Jump:


Users browsing this thread: 1 Guest(s)