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);
}
}