sora+ Posted June 18, 2011 Share Posted June 18, 2011 Well so yeah i am working on a server while i come accross a unknown matter. So my client sound file is this (Not gonna show the whole client.lua ) Client.lua type="client" --Sounds-- function cry(hitElement, matchingDimension) local sound = playSound("Sounds/Witch Cry.wav") setSoundVolume(sound, 0.6) end actioncol01 = createColSphere ( -1507.9633789063, -2337.2800292969, 7.7860670089722, 50 ) addEventHandler("onClientColShapeHit", actioncol01, cry) So i wanted to create the l4d witch in the forest. I have her model and i replace ped 120. Siz.lua type="server" function pedLoad ( name ) createPed ( 120, -1507.9633789063, -2337.2800292969, 7.7860670089722) end addEventHandler ( "onResourceStart", getRootElement(), pedLoad ) Now how can i set this ped to kill other local player i need help on this also i have this weird error "Aborting infinate running script editor_main" in the console window. So if someone can tell me how can i create this ped to kill that will be appreaciated , and also how i fix this error Thanks in advance! Link to comment
Castillo Posted June 18, 2011 Share Posted June 18, 2011 Creating a bot that would kill players could be hard, maybe check out 'slothbot' resource by Slothman. Get it from the MTA community. Link to comment
Oz. Posted June 19, 2011 Share Posted June 19, 2011 Just as a side note, as far as I know there is no support for ped model replacement for now, you can only replace the ped's texture. You can replace ped 120 in your client files but you will not be able to script the replacement server-side until MTA1.1 or 1.2, I guess. It may be difficult to get an existing ped to look like the L4D witch using the ped's default DFF. Link to comment
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