HUNGRY:3 Posted April 4, 2015 Posted April 4, 2015 function vipdayz( source ) if getElementData( source,"VIP", true) then setElementData( source,"blood", 15000) outputChatBox("HEALED", source, 255, 0, 0) end addCommandHandler("heal", vipdayz) what's the problem?
ALw7sH Posted April 4, 2015 Posted April 4, 2015 function vipdayz( source ) if getElementData( source,"VIP") == true then setElementData( source,"blood", 15000) outputChatBox("HEALED", source, 255, 0, 0) end addCommandHandler("heal", vipdayz)
Gallardo9944 Posted April 4, 2015 Posted April 4, 2015 There is "end" missing to close the function though.
HUNGRY:3 Posted April 4, 2015 Author Posted April 4, 2015 kk how about this to add the vip player :3 i want it when i add the guy it says [playername] is now VIP! i tried but nah function addvip( thePlayer, commandName, playername ) if getElementData( thePlayer,"admin") == true then if not playername then outputChatBox ( "You MUST define a player to add him!", thePlayer ) else local vipplayer = getPlayerFromName ( playername ) setElementData( vipplayer,"VIP", true) outputChatBox("CongratZ the Player is now vip -->"..getPlayerName(playername) else outputChatBox ( "Player does not exist!", thePlayer ) end end end addCommandHandler("add", addvip)
HUNGRY:3 Posted April 4, 2015 Author Posted April 4, 2015 and if you're saying "this is a stolen script oh we won't help u" i made it .
ALw7sH Posted April 4, 2015 Posted April 4, 2015 i'm sure you didn't stole it function addvip( thePlayer, commandName, playername ) if getElementData( thePlayer,"admin") == true then if playername then local vipplayer = getPlayerFromName ( playername ) if vipplayer then setElementData( vipplayer,"VIP", true) outputChatBox("CongratZ the Player is now vip -->"..getPlayerName(vipplayer),root,255,255,255,true) else outputChatBox ( "Player does not exist!", thePlayer ) end else outputChatBox ( "You MUST define a player to add him!", thePlayer ) end end end addCommandHandler("add", addvip)
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