Whisper command +REP
#2

PHP код:
CMD:w(playeridparams[])
{
    if(
isnull(params)) return SendClientMessage(playeridCOLOR_SEAGREEN"Usage: /w(hisper) [message]");
    new 
string[150], pName[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpNameMAX_PLAYER_NAME);
    
format(stringsizeof string"'%s whispers' %s %s"pNamestringparams);
    
SendRangeMessage(playerid, -1string20.0);
    return 
1;

Paste this somewhere in your script outside any callback / cmd.
PHP код:
stock SendRangeMessage(playeridCOLOR, const text[], Float:range)
{
    new 
Float:XFloat:YFloat:Z;
    
GetPlayerPos(playeridXYZ);
    for(new 
GetPlayerPoolSize()+1; --i!=-1;)
    {
        if(!
IsPlayerConnected(i) || IsPlayerNPC(i) || !IsPlayerInRangeOfPoint(irangeXYZ)) continue;
        
SendClientMessage(iCOLORtext);
    }
    return 
1;

Reply


Messages In This Thread
Whisper command +REP - by [SU]Spartan - 07.06.2016, 09:27
Re: Whisper command +REP - by saffierr - 07.06.2016, 09:32
Re: Whisper command +REP - by Infinity - 07.06.2016, 09:34
Re: Whisper command +REP - by [SU]Spartan - 07.06.2016, 09:34
Re: Whisper command +REP - by saffierr - 07.06.2016, 09:42
Re: Whisper command +REP - by Sjn - 07.06.2016, 09:55
Re: Whisper command +REP - by Stinged - 07.06.2016, 11:59
Re: Whisper command +REP - by justjamie - 07.06.2016, 13:15

Forum Jump:


Users browsing this thread: 1 Guest(s)