Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 09-18-2010, 02:39 PM
iSlayer iSlayer is offline
Snk for manager
iSlayer's Avatar
Join Date: Feb 2010
Location: Room 7, Era Hotel, Era
Posts: 202
iSlayer will become famous soon enough
Healing clientr.mudmp

Well I'm trying to heal a players MP in my server but I can only get it working when the weapon is equiped?? Heres the code


PHP Code:
function onActionServerSide() {
 if (
params[0] == "heal") {
  
clientr.mudmp += "1";
 }
}
  
//#CLIENTSIDE
function onCreated() {
  if (
clientr.mudmp <= "99") {
  
triggerserver("gui",this.name,"heal");
  
setTimer(1);
 }
}
function 
onTimeout() {
  if (
clientr.mudmp <= "99") {  
  
triggerserver("gui",this.name,"heal");
  
setTimer(1);
 }

__________________
Snk for manager




Quote:
Originally Posted by Admins View Post
Snk for manager of Era
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 08:27 PM.


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