04.01.2011, 18:46
Quote:
Ehm here's a small, little command, used with dcmd. It's an /me command.
pawn Код:
if(sscanf(params, "ds", giveplayerid, reason)). This is mostly used for ban/kick commands. the 'd' is an integer and the 's' is the string. Behind that, use the strings you wanna use in the script. Sorry if I am unclear. I hope that you understand this |
pawn Код:
COMMAND:me(playerid, params[])
{
new text[128], string[128];
if(sscanf(params, "s[64]", text)) return SendClientMessage(playerid, COLOR_WHITE, "ERROR » That's not the way, try: /me (action)");
format(string, sizeof(string), "{C688D4}** %s %s", RemoveUnderScore(playerid), text);
NewProx(playerid, COLOR_WHITE, string, 30.0);
return 1;
}