laserlaser Posted November 20, 2010 Posted November 20, 2010 Hello,this my new function respawnAllVehicles with exceptions... Ex use: v1 = createVehicle(...) respawnAllVehicles(v1) ((( Here, it just does not respawn vehicle "v1" ))) or v1 = createVehicle(...) v2 = createVehicle(...) v3 = createVehicle(...) respawnAllVehicles(v1,v3) ((( Here, it just does respawn vehicle "v2" ))) The Function : function respawnAllVehicles(...) local ex = {...} local cars = getElementsByType("vehicle") for k,v in ipairs(cars) do local carEx=0 for a,c in ipairs(ex) do if c == ex then carEx=1 end end if carEx~=1 then respawnVehicle(v) end end end - War Of Empire LUA Team -
drake989 Posted November 20, 2010 Posted November 20, 2010 "Scripting" this is no section for help? hm maybe resources is for release x; Multi Theft Auto 1.1 Rollerblades + Park = 90% completed Skateboarding anims = 29% completed Horse model + ride anim = 79% completed Gods Of War gamemode = 67% completed Multi Theft Auto 1.0.4 Gods Of War maps = 88% completed WOW gamemode = 30% completed
dzek (varez) Posted November 20, 2010 Posted November 20, 2010 well, this is forum for help but as i've already told you - please add such things to wiki. thanks. Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online! programista php rzeszów Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting. Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!
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