12.01.2012, 19:21
when anyone advertise a server ip through this cmd then they should get banned.
pawn Код:
CMD:me(playerid,params[]) {
new Message[128], sendername[MAX_PLAYER_NAME];
new actiontext[MAX_CHATBUBBLE_LENGTH+1];
new metext[MAX_CHATBUBBLE_LENGTH+1];
new pname[24],string[128];
GetPlayerName(playerid,pname,sizeof(pname));
if (sscanf(params, "s", Message)) return SendMessageToPlayer(playerid, COLOR_LIGHTBLUE, "USAGE: /me <text>");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(actiontext,MAX_CHATBUBBLE_LENGTH,"* %s",Message);
format(metext,MAX_CHATBUBBLE_LENGTH,"*%s %s",sendername,Message);
SetPlayerChatBubble(playerid,actiontext,ACTION_COLOR,30.0,10000);
SendMessageToAll(NICE_PINK,metext);
return 1;}

