Jump to content

Need help with playerWannaSpawn


Guest TiDuZ

Recommended Posts

I don't understand why the console give me a errors.. :redhotevil:

This is the code:

bindKey(source,"F4","down",playerWannaSpawn) 

function playerWannaSpawn ( source, key, keyState ) 
    if getElementData( source, "wannaSpawn") == true then outputChatBox("Returning to class selection after next death..", getRootElement(), 0, 255, 0 ) end 
    setElementData( source, "wannaSpawn", true ) 
        if getElementData(source, "wannaSpawn") == true then 
        setTimer( returnToClassSelection, 2000, 1, source ) 
    else 
        fadeCamera ( source, false, 2.0, 17, 119, 17 ) 
        setTimer( SetupPlayerRandomSpawn, 2000, 1, source ) 
end 
addEventHandler( "F4", root, OnPlayerDeath ) 

Link to comment

Please post the exact error and find the line of it. :D

EDIT:

addEventHandler( "F4", root, OnPlayerDeath ) 

This is nothing. :P

bindKey(source,"F4","down",playerWannaSpawn) 

Are you sure that the source parameter is exact?

If you've seen this function in my mode "Massacre DM", please send me your MSN and let's talk about it.

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