25.12.2012, 23:19
Okay, I found this /b command and edited it a little, but whenever someone speaks in /b it repeats the message several times.
code:
Anyone know what's wrong?
code:
Quote:
CMD:b(playerid, params[]) { if (isnull(params)) return SendClientMessage(playerid, -1, "{C0C0C0}USAGE: /b [message]"); new Float:X, Float:Y, Float:Z, String[128], pname[25]; GetPlayerPos(playerid, X, Y, Z); GetPlayerName(playerid, pname, 25); format(String, 128, "(( [%d] %s: %s ))", playerid, pname, params); if(PlayerInfo[playerid][pAdmin] >= 1) { format(String, 128, "(( [%d] {FF9900}%s:{C0C0C0} %s ))", playerid, pname, params); } for(new i = 0; i < MAX_PLAYERS; i++) { ProxDetector(30.0, playerid, String, 0xC2A2DAAA, 0xC2A2DAAA, 0xC2A2DAAA, 0xC2A2DAAA, 0xC2A2DAAA); { SendClientMessage(playerid, 0xC0C0C0FF, String); } } return true; } |