/me and /do - 2 lines
#1

Hello SA-MP.COM

I want to make /do and /me command with two lines.

I try with THIS, but i falied.

Commands:

/me:
pawn Код:
CMD:me(playerid, params[])
{
    new string[128];
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /me [action]");
    if(AntiAdv(playerid, params)) return 1;
    format(string, sizeof(string), "* %s %s", RPN(playerid), params);
    SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
    return 1;
}
/do:

pawn Код:
CMD:do(playerid, params[])
{
    new string[128];
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /me [action]");
    if(AntiAdv(playerid, params)) return 1;
    format(string, sizeof(string), "* %s (( %s ))", params, RPN(playerid));
    SendNearbyMessage(playerid, 15, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
    return 1;
}
Sorry for my very bad english !!!

HELP PLEASE
Reply


Messages In This Thread
/me and /do - 2 lines - by Iuly1234 - 16.06.2013, 19:33
Re: /me and /do - 2 lines - by Scenario - 16.06.2013, 20:09
Re: /me and /do - 2 lines - by dannyk0ed - 16.06.2013, 20:29
Re: /me and /do - 2 lines - by Iuly1234 - 17.06.2013, 07:16
Re: /me and /do - 2 lines - by Pottus - 17.06.2013, 07:28
Re: /me and /do - 2 lines - by Iuly1234 - 17.06.2013, 19:31
Re: /me and /do - 2 lines - by lean1337 - 17.06.2013, 20:42
Re: /me and /do - 2 lines - by Red_Dragon. - 18.06.2013, 00:01
Re: /me and /do - 2 lines - by Iuly1234 - 18.06.2013, 06:52
Re: /me and /do - 2 lines - by Iuly1234 - 19.06.2013, 13:08

Forum Jump:


Users browsing this thread: 2 Guest(s)