/whisper [ID] [message] help!
#7

Enjoy it
PHP код:
CMD:wisper(playeridparams[])
{
        new 
string[128],id,mess[250],giveplayer[25],sendername[25];
        if(
sscanf(params"us[250]",id,mess)) return SendClientMessage(playerid, -1"{FFFFFF}Syntax: {FFFFFF}/w <Name/Playerid> <Message>");
          if(
id != INVALID_PLAYER_ID)
          {
                if(
GetDistanceBetweenPlayers(playerid,id) > 5) return SendClientMessage(playerid,-1,"{FFFFCC}This player is not near you.");
                if(
id == playerid) return SendClientMessage(playerid, -1,"{FFB870}You can not send a message to yourself.");
                
GetPlayerName(playeridsendernamesizeof(sendername));
                
GetPlayerName(idgiveplayersizeof(giveplayer));
                
format(stringsizeof(string), "{00DBDB}%s whispers: %s"sendernamemess);
                
SendClientMessage(id, -1string);
                
format(stringsizeof(string), "{00DBDB}Whisper to %s: %s"giveplayermess);
                
SendClientMessage(playerid,  -1string);
                return 
1;
        }
}
alias:wisper("w"); 
Reply


Messages In This Thread
/whisper [ID] [message] help! - by Imbalo - 15.03.2017, 04:19
Re: /whisper [ID] [message] help! - by Toroi - 15.03.2017, 06:33
Re: /whisper [ID] [message] help! - by Imbalo - 15.03.2017, 08:04
Re: /whisper [ID] [message] help! - by Kane - 15.03.2017, 08:14
Re: /whisper [ID] [message] help! - by Imbalo - 15.03.2017, 08:21
Re: /whisper [ID] [message] help! - by Flamehaze7 - 15.03.2017, 10:06
Re: /whisper [ID] [message] help! - by YouHack - 15.03.2017, 13:42
Re: /whisper [ID] [message] help! - by Imbalo - 15.03.2017, 15:40
Re: /whisper [ID] [message] help! - by Dayrion - 15.03.2017, 20:11
Re: /whisper [ID] [message] help! - by Dutheil - 15.03.2017, 22:26

Forum Jump:


Users browsing this thread: 1 Guest(s)