Death Posted June 20, 2013 Share Posted June 20, 2013 This script is giving error in the next map in the beginning of the next map that u took hunter he kills some players addEvent( "onPlayerPickUpRacePickup", true ) addEventHandler( "onPlayerPickUpRacePickup", root, function( number, sort, model ) if sort == "vehiclechange" then if model == 425 then outputChatBox( getPlayerName( source ).." #FFFFFFPegou Hunter", root, 255, 255, 255, true ) setTimer( killPed, 60000, 1, root ) end end end ) Link to comment
Castillo Posted June 20, 2013 Share Posted June 20, 2013 I really don't understand what you said, could you try to explain it? Link to comment
Death Posted June 20, 2013 Author Share Posted June 20, 2013 when the player was to grab a map hunter after 1 minute all players die map The problem is that the next map all players die in spawn. -. Link to comment
Castillo Posted June 20, 2013 Share Posted June 20, 2013 You mean the next map starts before they get killed? Link to comment
bandi94 Posted June 20, 2013 Share Posted June 20, 2013 I think he mean: When somebody reach the hunter from then in one minute kill all player's so the next map can start (votemap). But he added a timer 60000 , so if the map end's in less that a minute(last player die) then the timer it's not killed so the player's are killed in the next map (after a minute). So there should be added a check if map end's kill the timer. I leave this part for you @Solidsnake14 bk i need to recap LUA. (i made my last script long time ago) Link to comment
Castillo Posted June 20, 2013 Share Posted June 20, 2013 addEvent ( "onPlayerPickUpRacePickup", true ) addEventHandler ( "onPlayerPickUpRacePickup", root, function ( number, sort, model ) if ( sort == "vehiclechange" ) then if ( model == 425 ) then outputChatBox ( getPlayerName ( source ).." #FFFFFFPegou Hunter", root, 255, 255, 255, true ) theTimer = setTimer ( killPed, 60000, 1, root ) end end end ) addEvent ( "onMapStarting", true ) addEventHandler ( "onMapStarting", root, function ( ) if isTimer ( theTimer ) then killTimer ( theTimer ) end end ) Link to comment
Death Posted June 20, 2013 Author Share Posted June 20, 2013 spawn in the other map the script ends up killing all players Link to comment
JuniorMelo Posted June 20, 2013 Share Posted June 20, 2013 try this no tested addEventHandler( "onPlayerPickUpRacePickup", getRootElement(), function(kill, sort, model) if sort == "vehiclechange" then if model == 425 then setTimer(killPed, 60000, 1, getRootElement() ) outputChatBox( getPlayerName( source ).." #FFFFFFPegou Hunter", getRootElement(), 255, 255, 255, true ) end end end ) Link to comment
Death Posted June 20, 2013 Author Share Posted June 20, 2013 thank you got more done in a different way Link to comment
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