View Single Post
  #3  
Old 03-26-2011, 09:06 PM
mrnothersan mrnothersan is offline
Owner of MrNothersan
Join Date: Mar 2011
Location: On the Computer
Posts: 97
mrnothersan is an unknown quantity at this point
Send a message via AIM to mrnothersan Send a message via MSN to mrnothersan
Quote:
Originally Posted by WhiteDragon View Post
You need to actually make that code run. Putting code in a class doesn't do anything by itself.

Put this in a weapon:

PHP Code:
//#CLIENTSIDE
function onWeaponFired() {
  
player.chat "Whoa, 'tis workin'!";

And add that weapon to your player. When you fire the weapon your chat should change.

Now, just replace that line in the middle with your GUI-creating code, and it should create.
Hi

Thanks for your reply.
It is not a weapon we want to add. We would like to add the GuiWindowCtrl GUI to our playerworld so when you log into the playerworld it opens automatically with some "Welcome" text in.

Thanks
mrnothersan
Reply With Quote