Thread: Gui Help
View Single Post
  #3  
Old 06-11-2011, 05:01 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
Quote:
Originally Posted by iBeatz View Post
I suppose you could call a function inside the GUI script from the NPC-Control when the player logs in ie. this goes in the NPC-Control:

PHP Code:
function onActionPlayerOnline(){
 
findWeapon("your weapon name").Test();

Replace the function Test() with the function that shows/activates the GUI in the script, and make sure that the function in the GUI script is a public function so that other NPCs can access it.
excessively wasteful, should just be in a weapon players have upon login, and the showing of the GUI should be done in onCreated event clientside
Reply With Quote