15.07.2010, 18:04
pawn Код:
CMD:me(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
new message[128];
if(sscanf(params, "s[128]", message)) return SendClientMessage(playerid, CYAN, "[USAGE]: /me [text]. This command will display a local message, used for showing actions.");
else
{
new string[128];
format(string, sizeof(string), "*[ACTION]* %s: %s", ReturnPlayerName(playerid), message);
ProxDetector(30.0, playerid, string, PURPLE,PURPLE,PURPLE,PURPLE,PURPLE);
}
}
return 1;
}