HardRolePlay Basics
#3

Quote:
Originally Posted by Finn
Посмотреть сообщение
cna u has /me command? thanks
What?.
Don't understand sorry xD
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;
            }
            new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[128];
            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;
            }
            format(string, sizeof(string), "* Admin %s", result);
            ProxDetector(30.0, playerid, string, COLOR_CHAT1,COLOR_CHAT2,COLOR_CHAT3,COLOR_CHAT4,COLOR_CHAT5);
        }
        return 1;
    }
Reply


Messages In This Thread
HardRolePlay Basics - by SkizzoTrick - 26.12.2010, 19:15
Re: HardRolePlay Basics - by Finn - 26.12.2010, 19:57
Re: HardRolePlay Basics - by SkizzoTrick - 26.12.2010, 20:19
Re: HardRolePlay Basics - by Meinstad - 26.12.2010, 20:38
Re: HardRolePlay Basics - by SkizzoTrick - 26.12.2010, 20:41
Re: HardRolePlay Basics - by Meinstad - 26.12.2010, 20:44
Re: HardRolePlay Basics - by SkizzoTrick - 26.12.2010, 20:47
Re: HardRolePlay Basics - by Meinstad - 26.12.2010, 20:55
Re: HardRolePlay Basics - by Zeeman - 29.12.2010, 10:50

Forum Jump:


Users browsing this thread: 1 Guest(s)