2 /me problems
#2

I don't understand you but i give you a code. Mby you want this.

pawn Код:
if(strcmp(cmd, "/me", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(gPlayerLogged[playerid] == 0)
            {
                SendClientMessage(playerid, COLOR_GREY, "   You havent logged in yet !");
                return 1;
            }
            GetPlayerName(playerid, sendername, sizeof(sendername));
            new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[64];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = cmdtext[idx];
                idx++;
            }
            result[idx - offset] = EOS;
            if(!strlen(result))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /me [action]");
                return 1;
            }
            if(PlayerInfo[playerid][pMaskuse] == 1)
            {
                format(string, sizeof(string), "* Stranger %s", result);
            }
            else
            {
                format(string, sizeof(string), "* %s %s", sendername, result);
            }
            ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
            printf("%s", string);
        }
        return 1;
    }
Reply


Messages In This Thread
2 /me problems - by MadalinX5 - 10.08.2011, 14:29
Re: 2 /me problems - by Aprezt - 10.08.2011, 14:34
Re: 2 /me problems - by Anzhelov - 10.08.2011, 15:14
Re: 2 /me problems - by MadeMan - 10.08.2011, 15:21
Re: 2 /me problems - by meD maN - 10.08.2011, 16:46
Re: 2 /me problems - by Aprezt - 10.08.2011, 16:49
Re: 2 /me problems - by Anzhelov - 10.08.2011, 17:39
Re: 2 /me problems - by Tanush123 - 10.08.2011, 17:40
Re: 2 /me problems - by [MG]Dimi - 10.08.2011, 18:04
Re: 2 /me problems - by meD maN - 10.08.2011, 20:36
Re: 2 /me problems - by MadalinX5 - 10.08.2011, 20:37
Re: 2 /me problems - by meD maN - 10.08.2011, 23:35
Re: 2 /me problems - by Zonoya - 10.08.2011, 23:44
Re: 2 /me problems - by Zonoya - 10.08.2011, 23:48

Forum Jump:


Users browsing this thread: 3 Guest(s)