Nico.de Posted August 2, 2011 Posted August 2, 2011 I want a script , when a player writes /kill he get suicide commited.. And so he can change the team (Stealth) THX
Castillo Posted August 2, 2011 Posted August 2, 2011 -- server side script: addCommandHandler("kill", function (thePlayer) killPed(thePlayer) end)
bandi94 Posted August 3, 2011 Posted August 3, 2011 function commitSuicide (player) killPed ( player, player) end addCommandHandler ( "kill", commitSuicide)
Castillo Posted August 3, 2011 Posted August 3, 2011 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
bandi94 Posted August 3, 2011 Posted August 3, 2011 yes i know what is it the secound argument (else i don't put it ....)
Castillo Posted August 3, 2011 Posted August 3, 2011 So, could you explain why you put it if there's no point?
TAPL Posted August 4, 2011 Posted August 4, 2011 function KillCmd ( thePlayer, cmd ) if ( thePlayer ) then killPed ( thePlayer ) end end addCommandHandler ( "kill", KillCmd )
Nico.de Posted August 4, 2011 Author Posted August 4, 2011 THX TAPL I KNOW U FROM KSA BASEMODE SERVER !
bandi94 Posted August 4, 2011 Posted August 4, 2011 i say again use " /debugscript 3 " to find and post the error
JR10 Posted August 4, 2011 Posted August 4, 2011 It's obvious, it's script not file. meta.xml: <meta> <info author="[GCC]^_Nico.de" type="script" /> <script src="kill.lua" type="server" /> </meta>
Castillo Posted August 4, 2011 Posted August 4, 2011 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.
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