top sniper Posted December 13, 2011 Posted December 13, 2011 i want to make super health. . server side addEvent("superHealth",true) addEventHandler("superHealth",root, function () if (getPlayerMoney(source) >= 3000) then setElementHealth ( source, 200 ) takePlayerMoney(source, 3000) outputChatBox("You Have Bought super Health !",source,255,255,0) else outputChatBox("You don't have $3,000 to buy super Health",source,255,0,0) end end) setElementHealth ( source, 200 ) when player buy super his health set 100 ! why??
TAPL Posted December 13, 2011 Posted December 13, 2011 addEvent("superHealth",true) addEventHandler("superHealth",root, function () if (getPlayerMoney(source) >= 3000) then setPedStat(source, 24, 1000) setElementHealth ( source, 200 ) takePlayerMoney(source, 3000) outputChatBox("You Have Bought super Health !",source,255,255,0) else outputChatBox("You don't have $3,000 to buy super Health",source,255,0,0) end end)
Cadu12 Posted December 13, 2011 Posted December 13, 2011 "value: the new value of the stat (0..999) " Custom are unlimited
top sniper Posted December 13, 2011 Author Posted December 13, 2011 addEvent("superHealth",true) addEventHandler("superHealth",root, function () if (getPlayerMoney(source) >= 3000) then setPedStat(source, 24, 1000) setElementHealth ( source, 200 ) takePlayerMoney(source, 3000) outputChatBox("You Have Bought super Health !",source,255,255,0) else outputChatBox("You don't have $3,000 to buy super Health",source,255,0,0) end end) thanxxx tapl itss work fine ^_*
12p Posted December 13, 2011 Posted December 13, 2011 Btw if you want to add even more health, use my script: https://community.multitheftauto.com/index.php?p= ... ls&id=1604
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now