16.06.2013, 19:33
Hello SA-MP.COM 
I want to make /do and /me command with two lines.
I try with THIS, but i falied.
Commands:
/me:
/do:
Sorry for my very bad english
!!!
HELP PLEASE

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;
}
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;
}

HELP PLEASE