Graal Forums  

Go Back   Graal Forums > Graal V6 forums > Announcements
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rating: Thread Rating: 10 votes, 4.60 average. Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 04-13-2013, 01:14 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Also curious how this would look like in GS3.

Weapon: Example

PHP Code:
function onActionServerSide() {
  if (
params[0] == "hello") {
    
player.triggerclient("weapon"this.name"goodbye");
  }
}

//#CLIENTSIDE

function onCreated() {
  
triggerserver("gui"this.name"hello");
}

function 
onActionClientSide() {
  if (
params[0] == "goodbye") {
    
player.chat "*fistbump*";
  }

Also if there's no 'with' (I still think there should be) how would this work out:

Weapon: GUIExample

PHP Code:
//#CLIENTSIDE
function onCreated() {
  new 
GuiWindowCtrl("Example") {
    
profile GuiBlueButtonProfile;
    
width height 100;
    new 
GuiButtonCtrl("ButtonExample") {
      
profile GuiBlueButtonProfile;
      
width height 10;
    }
    new 
GuiButtonCtrl("ButtonExample2") {
      
profile GuiBlueButtonProfile;
      
width height 30;
    }  
  }

__________________
Quote:
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:17 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.