22.06.2011, 15:31
Commands in my script that I added are /me /do /b however when player use them thats what they get:
here is a pawn code of these three cmds
I have got ProxDetector working fine, local chat is made, Im a newbie in scripting so Im sorry about these problems I post around :\
Thank you very much if you will look and help me out!
here is a pawn code of these three cmds
pawn Код:
}
CMD:me(playerid, params[])
{
if(isnull(params))
return SendClientMessage(playerid, COLOR_GREY, "SYNTAX:/me [action]");
new string[128];
format(string, sizeof(string), "* %s %s", GetName(playerid), params);
SendNearbyMessage(playerid, COLOR_ME, string);
return 1;
}
CMD:do(playerid, params[])
{
if(isnull(params))
return SendClientMessage(playerid, COLOR_GREY, "SYNTAX:/do [enviornment]");
new string[128];
format(string, sizeof(string), "%s (( %s ))", params, GetName(playerid));
SendNearbyMessage(playerid, COLOR_ME, string);
return 1;
}
CMD:b(playerid, params[])
{
if(isnull(params))
return SendClientMessage(playerid, COLOR_GREY, "SYNTAX:/b [message]");
if(strlen(params) > 90)
return SendClientMessage(playerid, COLOR_RED1, "ERROR: Your message cannot be longer than 90 characters.");
new string[128];
format(string, sizeof(string), "(( %s(%d): %s ))", GetName(playerid), playerid, params);
SendNearbyMessage(playerid, COLOR_GREY, string);
return 1;
}
Thank you very much if you will look and help me out!