Is there any way to make a /me with the normal cmd shite - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Is there any way to make a /me with the normal cmd shite (
/showthread.php?tid=312581)
Is there any way to make a /me with the normal cmd shite -
davelord - 22.01.2012
Well, title, basicly. Am I able to make a /me with the basic CMD shite, and not with ZCMD or any other plugin? If so, could any of you give me an example? (What I'm trying to reach is, /me [text], only player so close can see it.]
Re: Is there any way to make a /me with the normal cmd shite -
Jefff - 22.01.2012
pawn Код:
if(!strcmp(cmdtext,"/me",true,3))
{
if(!strlen(cmdtext[4])) return SendClientMessage(playerid,-1,"Usage: /me [text]");
new Float:P[4],Nick[24],str[128];
GetPlayerName(playerid,Nick,24);
GetPlayerPos(playerid,P[0],P[1],P[2]);
format(str,sizeof(str),"(me) %s: %s",Nick,cmdtext[4]);
for(new d,g=GetMaxPlayers(); d < g; d++)
if(IsPlayerConnected(d))
{
P[3] = GetPlayerDistanceFromPoint(d,P[0],P[1],P[2]);
if(P[3] <= YOUR_DISTANCE) // example 10.0
SendClientMessage(d,-1,str);
}
return 1;
}
Re: Is there any way to make a /me with the normal cmd shite -
davelord - 22.01.2012
...Woah, lol, you're awesome, buddy.
Re: Is there any way to make a /me with the normal cmd shite -
davelord - 22.01.2012
- edited out