View Single Post
  #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