kewiiNNN Posted February 15, 2015 Share Posted February 15, 2015 Can i make just a simple town that zombies will spawn in that town only? can someone make me an example cause i dont know anything about scripting.. Link to comment
franku Posted February 15, 2015 Share Posted February 15, 2015 Well, examples, examples ... You've to learn Lua basics first to start scripting. You can't live on examples if you hardly want to start code your own scripts. Link to comment
kewiiNNN Posted February 15, 2015 Author Share Posted February 15, 2015 i have greenzone and zombie script but how to make zombie spawn only in that square radar Link to comment
kewiiNNN Posted February 15, 2015 Author Share Posted February 15, 2015 how to change this to zombies can spawn in here safecol = createColCuboid ( 95.974617004395, 1751.3895263672, 17.640625, 255, 255, 255 ) safeZoneRadar = createRadarArea ( 95.974617004395, 1751.3895263672, 255, 255, 255, 255, 255 ) setElementData (safeZoneRadar, "zombieProof", true) function enterZone(hitPlayer,thePlayer) local skin = getElementModel (hitPlayer) if ( skin == 287 ) then toggleControl (hitPlayer, "fire", true ) toggleControl (hitPlayer, "aim_weapon", true) toggleControl (hitPlayer, "vehicle_fire", true) outputChatBox("You message here example: you entering the area 69.", hitPlayer, 0, 255, 0) else killPed (hitPlayer) end end addEventHandler( "onColShapeHit", safecol, enterZone ) function leaveZone(hitPlayer,thePlayer) local skin = getElementModel (hitPlayer) toggleControl (hitPlayer, "fire", true) toggleControl (hitPlayer, "aim_weapon", true) toggleControl (hitPlayer, "vehicle_fire", true) outputChatBox("You message here example: you out the area 69", hitPlayer, 255, 0, 0) if not ( skin == 287 ) then killPed (hitPlayer) end end addEventHandler( "onColShapeLeave", safecol, leaveZone ) Link to comment
JR10 Posted February 16, 2015 Share Posted February 16, 2015 There is an exported function called createZombie in the zombies resource, use it. exports.zombies:createZombie ( x, y, z, rot, skin, interior, dimension ) Link to comment
kewiiNNN Posted February 16, 2015 Author Share Posted February 16, 2015 dont know how to script ee Link to comment
LaCosTa Posted February 16, 2015 Share Posted February 16, 2015 you've just to learn or pay a scripter to do that for you Link to comment
kewiiNNN Posted February 16, 2015 Author Share Posted February 16, 2015 can nobody make me for free? Link to comment
JR10 Posted February 16, 2015 Share Posted February 16, 2015 Probably not. And this is not a correct way to ask question here, read this please: viewtopic.php?f=91&t=47897 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