Thread: Gui Help
View Single Post
  #2  
Old 06-11-2011, 03:57 AM
iBeatz iBeatz is offline
Kavan
iBeatz's Avatar
Join Date: Dec 2010
Location: Northern Ireland, UK
Posts: 154
iBeatz will become famous soon enough
Send a message via Yahoo to iBeatz
Quote:
Originally Posted by patrickp2p View Post
Thanks! That helped me a bunch XP. What do I put so it will show up to all players when they log on (It's basically a gui telling players about hirings and how to contact me).
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.
__________________

Intelligence without ambition is like a bird without wings.

Reply With Quote