/me isn't working
#6

Quote:
Originally Posted by Naruto_Emilio
Посмотреть сообщение
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]);
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    for(new i=0; i<MAX_PLAYERS; i++)
    {
    if(IsPlayerConnected(i))
    {
    if(IsPlayerInRangeOfPoint(i, 40.0, x, y, z))
    {
    SendClientMessage(i, COLOR_LIME, str);
    }
    }
    }
    return 1;
    }
Try my code
Thanks matey. Do you have msn by any chance? I'm pushing a big project.
Reply


Messages In This Thread
/me isn't working - by Jonteh - 15.05.2011, 21:48
Re: /me isn't working - by NRJ53 - 15.05.2011, 21:51
Re: /me isn't working - by lowrida018 - 15.05.2011, 21:57
Re: /me isn't working - by Naruto_Emilio - 15.05.2011, 22:00
Re: /me isn't working - by lowrida018 - 15.05.2011, 22:04
Re: /me isn't working - by Jonteh - 15.05.2011, 22:06
Re: /me isn't working - by Jonteh - 15.05.2011, 22:09
Re: /me isn't working - by Naruto_Emilio - 15.05.2011, 22:09
Re: /me isn't working - by lowrida018 - 15.05.2011, 22:16
Re: /me isn't working - by Jonteh - 15.05.2011, 22:17

Forum Jump:


Users browsing this thread: 1 Guest(s)