Author Topic: help with /a = drawtext (msg)  (Read 817 times)

0 Members and 1 Guest are viewing this topic.

Offline xReaperx

  • Major(1)
  • Posts: 45
help with /a = drawtext (msg)
« on: June 09, 2007, 06:00:34 am »
Hi, i want to make a script that allows admins to DrawText in game. for example
/a Your Dead //and this will DrawText on all players screens.
So far I've got..


Procedure AdminSay;
Begin
IF Msg='/a ' then
WriteConsole(0, '(Msg), rgb(20,20,20));
End;

I'm a beginner so be nice :D

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: help with /a = drawtext (msg)
« Reply #1 on: June 09, 2007, 06:10:00 am »
Why are you using WriteConsole.... Use DrawText.....

Offline Toumaz

  • Veteran
  • *****
  • Posts: 1906
Re: help with /a = drawtext (msg)
« Reply #2 on: June 09, 2007, 06:19:32 am »
Code: [Select]
  if (Copy(Text,1,9) = '/message ' = True) then
DrawText(0,Copy(Text,10,Length(Text)-9),300,RGB(255,0,255),0.1,5,400);

/message Foobar, or whatever you wish to name the command.
« Last Edit: June 09, 2007, 09:06:04 am by Toumaz »

Offline xReaperx

  • Major(1)
  • Posts: 45
Re: help with /a = drawtext (msg)
« Reply #3 on: June 09, 2007, 07:09:42 pm »
oh yeah, i meant drawtext lol.