Jump to content

any problem ?


HUNGRY:3

Recommended Posts

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) 

Link to comment

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) 

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