strcmp /me command with radius
#3

pawn Код:
stock ProxDetector(Float:radi, playerid, string[],color)
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid,x,y,z);
    foreach(Player,i)
    {
        if(!IsPlayerConnected(i))continue;
        if(IsPlayerInRangeOfPoint(i,radi,x,y,z)) SendClientMessage(i,color,string);
    }
}
pawn Код:
if(!strcmp(cmdtext, "/me", true, 3))
    {
        if(!cmdtext[3])return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
        new str[128];
        GetPlayerName(playerid, str, sizeof(str));
        format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
        ProxDetector(30.0,playerid,str,COLOR_WHITE);
        return 1;
    }
here you go

and, i agree with romel, ZCMD/YCMD is faster and newer
Reply


Messages In This Thread
strcmp /me command with radius - by Rabbayazza - 25.07.2012, 09:00
Re: strcmp /me command with radius - by JaKe Elite - 25.07.2012, 09:04
Re: strcmp /me command with radius - by Jstylezzz - 25.07.2012, 09:06
Re: strcmp /me command with radius - by Rabbayazza - 25.07.2012, 09:06
Re: strcmp /me command with radius - by Pinguinn - 25.07.2012, 09:10
Re: strcmp /me command with radius - by Jstylezzz - 25.07.2012, 09:11
Re: strcmp /me command with radius - by Rabbayazza - 25.07.2012, 09:12
Re: strcmp /me command with radius - by Rabbayazza - 25.07.2012, 09:14
Re: strcmp /me command with radius - by Jstylezzz - 25.07.2012, 09:17
Re: strcmp /me command with radius - by Rabbayazza - 25.07.2012, 09:21

Forum Jump:


Users browsing this thread: 9 Guest(s)