Jump to content

i need help again!


Nexsus12

Recommended Posts

i created kill script and there is a error this http://s21.postimg.org/vnliy1g8n/kill.png here is my code

addCommadnHandler("suicide") 
    function(player) 
        setTimer(killPed,5000,1,player) 
        setElementFrozen(player,true) 
        outputChatBox("You will die in 5 seconds!!",player,255,255,255, false) 
    end 
  
function unfroze(player) 
   setElementFrozen(player,false) 
end 
addEventHandler("onPlayerRespawn",player, ufroze) 

Link to comment

try

addCommandHandler ( "suicide", 
function(player) 
    setElementFrozen( player, true ) 
    setTimer( function(p) 
        killPed ( p ) 
        setElementFrozen ( p, false ) 
    end, 5000, 1, player ) 
    outputChatBox( "You will die in 5 seconds!!", player, 255, 255, 255, false ) 
end ) 

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