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) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted August 2, 2011 Posted August 2, 2011 You welcome . San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
bandi94 Posted August 3, 2011 Posted August 3, 2011 function commitSuicide (player) killPed ( player, player) end addCommandHandler ( "kill", commitSuicide) Ingame Name : |DGT|Puma DGT Clan Server 24/7 Owner/Scripter MultiGameMode in progress :
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 San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
bandi94 Posted August 3, 2011 Posted August 3, 2011 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 :
Castillo Posted August 3, 2011 Posted August 3, 2011 So, could you explain why you put it if there's no point? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
#Paper Posted August 3, 2011 Posted August 3, 2011 isn't the /kill command integrated in MTA? My skype: skiper964 I helped you? Help me! ^^ Help me bro! ^^
Castillo Posted August 3, 2011 Posted August 3, 2011 No. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
bandi94 Posted August 3, 2011 Posted August 3, 2011 use /debugscript 3 to find the error Ingame Name : |DGT|Puma DGT Clan Server 24/7 Owner/Scripter MultiGameMode in progress :
TAPL Posted August 4, 2011 Posted August 4, 2011 function KillCmd ( thePlayer, cmd ) if ( thePlayer ) then killPed ( thePlayer ) end end addCommandHandler ( "kill", KillCmd )
#Paper Posted August 4, 2011 Posted August 4, 2011 No. Omg, ye i got confused whit race mode Sry LoL My skype: skiper964 I helped you? Help me! ^^ Help me bro! ^^
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 Ingame Name : |DGT|Puma DGT Clan Server 24/7 Owner/Scripter MultiGameMode in progress :
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> Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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