xeon17 Posted December 4, 2013 Posted December 4, 2013 I crated a funny event script with help of my friends , but can someone please edit my script becouse i want when a player die he need spawn again in event , event stop when Admin stop the resource. When the player die he spawns in dimension 1 at normall spawn place's in play gamemode.. can someone help me please , here is the script : function teleportEvento ( source, commandName, posX, posY, posZ ) setElementPosition ( source, -2353.73901, 1536.69714, 26.04688 ) end addCommandHandler ( "participar", teleportEvento ) function mensagemEvento () outputChatBox ( "#00FFFFUm To Enter the Event write /participar in chat", getRootElement(), 255, 0, 0, true ) end addEventHandler ( "onResourceStart", getResourceRootElement ( ), mensagemEvento ) function funcoesEvento(thePlayer) takeAllWeapons ( thePlayer ) setElementDimension ( thePlayer, 300 ) setPedArmor ( thePlayer, 100 ) setElementHealth ( thePlayer, 569 ) giveWeapon ( thePlayer, 38, 1000000000 ) outputChatBox("[EVENTO] You got a mini gun !.",thePlayer,0,255,255) outputChatBox("[EVENTO] You got health & armor.",thePlayer,0,255,255) end addCommandHandler("participar", funcoesEvento) function parandoEvento () outputChatBox ( "#00FFFFEvent Closed", getRootElement(), 255, 0, 0, true ) end addEventHandler ( "onResourceStop", getResourceRootElement ( ), parandoEvento )
Castillo Posted December 4, 2013 Posted December 4, 2013 function mensagemEvento ( ) outputChatBox ( "#00FFFFUm To Enter the Event write /participar in chat", getRootElement(), 255, 0, 0, true ) end addEventHandler ( "onResourceStart", getResourceRootElement ( ), mensagemEvento ) function funcoesEvento ( thePlayer ) takeAllWeapons ( thePlayer ) setElementDimension ( thePlayer, 300 ) setPedArmor ( thePlayer, 100 ) setElementHealth ( thePlayer, 569 ) giveWeapon ( thePlayer, 38, 1000000000 ) setElementPosition ( thePlayer, -2353.73901, 1536.69714, 26.04688 ) outputChatBox("[EVENTO] You got a mini gun !.",thePlayer,0,255,255) outputChatBox("[EVENTO] You got health & armor.",thePlayer,0,255,255) addEventHandler ( "onPlayerSpawn", thePlayer, onSpawn ) end addCommandHandler ( "participar", funcoesEvento ) function parandoEvento ( ) outputChatBox ( "#00FFFFEvent Closed", getRootElement(), 255, 0, 0, true ) end addEventHandler ( "onResourceStop", getResourceRootElement ( ), parandoEvento ) function onSpawn ( ) takeAllWeapons ( source ) setElementDimension ( source, 300 ) setPedArmor ( source, 100 ) setElementHealth ( source, 569 ) giveWeapon ( source, 38, 1000000000 ) setElementPosition ( source, -2353.73901, 1536.69714, 26.04688 ) end
xeon17 Posted December 4, 2013 Author Posted December 4, 2013 I have still this problem , when i kill a player in event he spawn in dimension 1 on normall play gamemode place When i kill someone he should spawn again in event , and he die again = spawn in event , when admin stop the resource , then he should spawn again at normall spawn place's
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