SA-MP Forums Archive
IRC Ingame Admin Chat Echo - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: IRC Ingame Admin Chat Echo (/showthread.php?tid=153900)



aaaa - Bloodcell - 11.06.2010

aaaa


Re: IRC Ingame Admin Chat Echo - Musty80 - 11.06.2010

if( (text[0] == '#' || text[0] == '@') && strlen(text) > 1)
{
new str[128];
new szPlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME);

if(IsPlayerAdmin(playerid))
{
format(str, 128, "[Admin] %s: %s", szPlayerName, text[1]);

for(new iPlayerID; iPlayerID < MAX_PLAYERS; iPlayerID++)
{
if(!IsPlayerConnected(iPlayerID)) continue;
if(!IsPlayerAdmin(iPlayerID)) continue;
SendClientMessage(iPlayerID, 0xFFFF22AA, str);
}
}

return 0;
}


Re: IRC Ingame Admin Chat Echo - Bloodcell - 11.06.2010

aaaa