0 Members and 1 Guest are viewing this topic.
if RegExpMatch('efc|enemyflagcarrier|enemy flagger|enemies flag|enemies flagger|enemy flag',lowercase(Text)) = true then begin for i := 1 to 32 do begin if GetPlayerStat(i,'Team') = GetPlayerStat(id,'Team') then begin if RegExpMatch('down|low|lower|bottom|downside',lowercase(Text)) = true then DrawText(i,'[EFC]^lower^Way!',(60*DURATION),iif(GetPlayerStat(i,'Team') = Alpha,RGB(255,0,0),RGB(0,0,255)),HEIGTH,POSX,POSY) if RegExpMatch('mid|middle',lowercase(Text)) = true then DrawText(i,'[EFC]^middle^Way!',(60*DURATION),iif(GetPlayerStat(i,'Team') = Alpha,RGB(255,0,0),RGB(0,0,255)),HEIGTH,POSX,POSY) if RegExpMatch('up|upper|high|roof|upsided',lowercase(Text)) = true then DrawText(i,'[EFC]^upper^Way!',(60*DURATION),iif(GetPlayerStat(i,'Team') = Alpha,RGB(255,0,0),RGB(0,0,255)),HEIGTH,POSX,POSY) end; end; end;
for i := 1 to 32 do begin if GetPlayerStat(i,'Team') = GetPlayerStat(id,'Team') then begin
Why not reading the script first before making useless Posts? Code: [Select] for i := 1 to 32 do begin if GetPlayerStat(i,'Team') = GetPlayerStat(id,'Team') then begin
RegExpMatch('^\^.*(efc|enemyflagcarrier|enemy flagger|enemies flag|enemies flagger|enemy flag)',lowercase(Text))
if RegExpMatch('^\^', lowercase(Text)) then begin if RegExpMatch('efc|enemyflagcarrier|enemy flagger|enemies flag|enemies|flagger|enemy flag',lowercase(Text)) then begin
How about making it that it would enlarge every team chat?
If (RegExpMatch('...',lowercase(Text)) = true) and (GetPlayerStat(id,'Team') < 3 ) then begin ...or If (RegExpMatch('...',lowercase(Text)) = true) and (GetPlayerStat(id,'Team') < 5 ) then begin ...
Quote from: Wookash on March 15, 2009, 10:33:38 amHow about making it that it would enlarge every team chat?hmmm... what happens if people said something at the same time and what if two people were talking to each other (team chat) in a pub?
^<~EFC!~>^<~On the left!~>^<~Base HOT!~>^<~Middle!~>^<~Tunnel!~>^<~High!~>^<~Low!~>
if RegExpMatch('^\^.*(cap|score)',lowercase(Text)) = true then... DrawText(i,'Capture now!',(60*duration),RGB(0,255,0),iheight,iposx,iposy)
if (text = '/orange') then begin taunts_color := 5; WriteConsole(id,'BigTaunts-Color = Orange!',RGB(100,140,230)); end;...if (taunts_color = 5) then begin color1 := 255; color2 := 150; color3 := 0; end;
if (text = '/orange') then begin color1 := 255; color2 := 150; color3 := 0; WriteConsole(id,'BigTaunts-Color = Orange!',RGB(100,140,230)); end;
1. Did you hear about type named 'boolean'? It has only 2 values: true and false, and is much more light than integer.
p_taunts : array[1..32] of integer;function OnPlayerCommand(ID: Byte; Text: string): boolean;beginif (text = '/taunts') and (p_taunts[id] = 1) then begin p_taunts[id] := 0; WriteConsole(id,'BigTaunts disabled',RGB(100,140,230)); end else if (text = '/taunts') and (p_taunts[id] = 0) then begin p_taunts[id] := 1; WriteConsole(id,'BigTaunts activated!',RGB(100,140,230)); end;...
p_taunts : array[1..32] of boolean;function OnPlayerCommand(ID: Byte; Text: string): boolean;begin if text = '/taunts' then begin p_taunts[id] := not p_taunts[id]; writeconsole(id,'BigTaunts '+iif(p_taunts[id],'activated','disabled')+'!',RGB(100,140,230)); end;...
Oh, then ya.. He didn't had an example^^..