Jump to content

simple command


[DMC]

Recommended Posts

function pinksky ( thePlayer ) 
if ( hasObjectPermissionTo ( thePlayer, "command.stopall", true ) ) then 
                                setSkyGradient( 200, 0, 100, 150, 0, 70 ) 
           outputChatBox(getPlayerName(thePlayer).." Changed the sky color to pink!", getRootElement(), 255, 255, 0, true) 
    end 
end 
addCommandHandler ( "setsky pink", pinksky ) 

hey i just made this and its really easy so idk why its not working

NO errors in debugscript 3 :cry:

Link to comment
  
function pinksky ( thePlayer ) 
    if hasObjectPermissionTo (thePlayer, "command.stopall") == true then 
      setSkyGradient(200, 0, 100, 150, 0, 70) 
       outputChatBox(getPlayerName(thePlayer).." changed the sky color to pink!", getRootElement(), 255, 255, 0, true)--"true" is not necessary in this case (colorCoded? You don't use Hex. color codes), maybe delete it to have less characters? 
    end 
end 
addCommandHandler ("setskypink", pinksky) 
  

This is correct, I think.

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