Jump to content

fix . .


top sniper

Recommended Posts

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??

Link to comment
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) 

:lol:

Link to comment
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) 

:lol:

thanxxx tapl itss work fine ^_*

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...