14.01.2012, 14:23
pawn Код:
CMD:me(playerid, params[])
{
new name[MAX_PLAYER_NAME], str[128];
GetPlayerName(playerid, name, sizeof(name));
if(isnull(params))
return SendClientMessage(playerid,COLOR_LIGHTBLUE -1,"[SYNTAX]: /me [Action]");
format(str,sizeof(str),"%s %s",name, params);
ProxDetector(30.0, playerid, str, COLOR_LIGHTBLUE, COLOR_LIGHTBLUE, COLOR_LIGHTBLUE, COLOR_LIGHTBLUE, COLOR_LIGHTBLUE);
return 1;
}
pawn Код:
CMD:g(playerid, params[])
{
new sendername[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, sendername, sizeof(sendername));
strreplace(sendername, '_', ' ');
format(string, sizeof(string), "((Global)) %s: %s", sendername, params);
SendClientMessageToAll(COLOR_SAEGREEN, string);
return 1;
}