Duplicating OOC command..
#1

Okay, I found this /b command and edited it a little, but whenever someone speaks in /b it repeats the message several times.
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;
}

Anyone know what's wrong?
Reply


Messages In This Thread
Duplicating OOC command.. - by HenrySunseri - 25.12.2012, 23:19
Re: Duplicating OOC command.. - by JaKe Elite - 25.12.2012, 23:22
Re: Duplicating OOC command.. - by HenrySunseri - 25.12.2012, 23:24
Re: Duplicating OOC command.. - by FalconWingsX - 26.12.2012, 00:05
Re: Duplicating OOC command.. - by SuperViper - 26.12.2012, 00:25

Forum Jump:


Users browsing this thread: 3 Guest(s)