View Single Post
  #5  
Old 03-26-2011, 09:13 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Quote:
Originally Posted by mrnothersan View Post
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
You will still need an event to run it...

For the class, put that code in a function like
PHP Code:
public function drawGUI() {
//that code goes here

then, have a weapon every player has. You can use it's clientside onCreated to draw the gui,

PHP Code:
function onCreated()
  
this.join("yourclassgoeshere");
//#CLIENTSIDE
function onCreated() {
  
drawGUI(); //calls function in class

You need events to execute your scripts
Reply With Quote