Author Topic: Simple script - need help  (Read 1720 times)

0 Members and 1 Guest are viewing this topic.

Offline Hubiq

  • Soldier
  • **
  • Posts: 119
Simple script - need help
« on: December 13, 2016, 05:55:26 pm »
Hi, I created a simple script

Quote
procedure OnPlayerSpeak(ID: Byte; Text: string);
begin
   
  if (Text='!cmd') then begin
   WriteConsole(ID, '!balance !admins', $ffff33);
  end;
end;

I want to (after type !cmd) commands !balance and !admins was visible to everyone on server.

I give you an example:

- Random player use !cmd
- and commands (!balance !admins) are visible to everyone on my server. 

Someone help me?

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: Simple script - need help
« Reply #1 on: December 13, 2016, 06:02:53 pm »
replace your WriteConsole call with this and you're done:
WriteConsole(0, '!balance !admins', $ffff33);
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Offline Hubiq

  • Soldier
  • **
  • Posts: 119
Re: Simple script - need help
« Reply #2 on: December 14, 2016, 03:10:08 am »
Thank you man!  :D