Jump to content

Help script


Death

Recommended Posts

Posted

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 
) 

Posted

I really don't understand what you said, could you try to explain it?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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

Posted

You mean the next map starts before they get killed?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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)xD

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

Posted
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 
) 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

You're welcome.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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 
) 

........... \__ ▄▂_

.........[█|||███████]▄▄▄▄▄▄▄▄▄▃▂

..__▂▄▅█████████▅▄▃▂

I███████████████████]

...◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤

░░░███████ ]▄▄▄▄▄▄▄▄

▂▄▅████████▅▄▃▂

I███████████████████]

◥⊙▲⊙▲⊙▲⊙▲⊙▲⊙▲⊙◤

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