Jump to content

Killscript


Nico.de

Recommended Posts

Posted

-- server side script:

addCommandHandler("kill", 
function (thePlayer) 
    killPed(thePlayer) 
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 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
function commitSuicide (player) 
killPed ( player, player) 
end 
addCommandHandler ( "kill", commitSuicide)  

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

Posted

The script should work if you setup up it's meta.xml correctly.

P.S: Bandi, the second argument is theKiller, that's not required, please take some time reading the required arguments.

Required Arguments: 
thePed: The ped to kill 

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

yes i know what is it the secound argument (else i don't put it ....)

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

Posted

So, could you explain why you put it if there's no point?

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
function KillCmd ( thePlayer, cmd ) 
    if ( thePlayer ) then 
        killPed ( thePlayer ) 
    end 
end 
addCommandHandler ( "kill", KillCmd ) 

CiTLh.png
Posted

i say again use " /debugscript 3 " to find and post the error

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

Posted

See? that's what I told him, the bug was in the meta.xml, I have enough scripting experience to know that it was working.

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.

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