0 Members and 3 Guests are viewing this topic.
Question 1: Is it possible to prevent a default event action from happening?For example, if someone says '!hello' all players see this in there 'log' and above the player. Can I cancel this default action by placing some code in the OnPlayerSpeak procedure?
Question 2: How (if possible) can I send text to the game as if a particular player said this.For example, can I let a player say 'Look at me, I'm a stats*****' ?
Could these be feature requests?
I believe the result part thing for OnPlayerSpeak has already been asked but sense its ran under a different thingy (i really have no idea), it can't be done.
Outside the topic: An admin will yell at you for your sig being too long on the 1 line "Brokenliquid.net DM Serv (soldat://130.89.164.52:23073/) now playing: DesertWind (0/32)" = 88 characters70 characters is the maxI know... its annoying. I've already been yelled at i believe 2 times
procedure OnJoinGame(ID, Team: byte);begin Command('/gmute ' + InttoStr(ID));end;procedure OnPlayerSpeak(ID: byte; Text: string);begin Case GetPlayerStat(ID,'Team') of 0: WriteConsole(0,Text,$FF000000); 1: WriteConsole(0,Text,$FFFF0000); 2: WriteConsole(0,Text,$FF0000FF); 3: WriteConsole(0,Text,$FF00FF00); 4: WriteConsole(0,Text,$FFFFFF00); 5: WriteConsole(0,Text,$FFFFFFFF); end;end;