whisper cmd
#2

using ZCMD
pawn Код:
COMMAND:whisper(playerid,params[])
{
   new string[250];
   if(sscanf(params,"s[250]",string)) return SendClientMessage(playerid,COLOR_RED,"USAGE:/whisper [message]");
   SetPlayerChatBubble(playerid,string,COLOR_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[250];
   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(playerid,COLOR_YELLOW,string2);
   }
 return 1;
}
Reply


Messages In This Thread
whisper cmd - by GGW - 09.08.2013, 10:57
Re: whisper cmd - by SsHady - 09.08.2013, 11:00
Re: whisper cmd - by GGW - 09.08.2013, 11:05
Re: whisper cmd - by SsHady - 09.08.2013, 11:08
Re: whisper cmd - by GGW - 09.08.2013, 11:11
Re: whisper cmd - by GGW - 09.08.2013, 11:14
Re: whisper cmd - by Max5 - 09.08.2013, 11:15
Re: whisper cmd - by GGW - 09.08.2013, 11:17
Re: whisper cmd - by GGW - 09.08.2013, 11:55
Re: whisper cmd - by Blast3r - 09.08.2013, 12:08

Forum Jump:


Users browsing this thread: 1 Guest(s)