
zombienation
Members-
Posts
314 -
Joined
-
Last visited
Everything posted by zombienation
-
i did that, first i enter vehicle and then i do command i got the same with admin boost script, but with that its like when i start it after server is already on, it works, but when i start it automaticly, it wont work on the server
-
its odd that it dont work then, do i need to reconnect when i start the script ?
-
hey, i copied this script u gave addCommandHandler("grav", function () local vehicle = getPedOccupiedVehicle(localPlayer) if (vehicle) then setVehicleGravity ( vehicle, 0, 0, -0.5 ) end end) into a new client.lua, i added the file in the meta as client, after starting in server, it asked for an upgrade, i did upgrade, then i spawn a vehicle, and i get in, and i do /grav, but no difference i rly dont know what i'm doing wrong ps, kimmis says i have to copie the script that he posted again, but i can see only one, maybe u see two?
-
Hey whats do u mean with copy the script again? In my script or on this topic? addCommandHandler("grav", 2. function () 3. local vehicle = getPedOccupiedVehicle(localPlayer) 4. if (vehicle) then 5. setVehicleGravity ( vehicle, 0, 0, -0.5 ) 6. end 7. end)
-
thanks man i cant get it to work i tried to add it on server and also client side in meta
-
thx solidsnake, where can i find the vehicle element of the vehicle i wanna settup with low gravity? when i search on wiki i find this, https://wiki.multitheftauto.com/wiki/Element/Vehicle but its not right i think
-
i tried setVehicleGravity ( 461, 0, 0, -0.5 ) and setVehicleGravity ( 461, 0, 0, 0.004 ) none had grav difference i tried the lua as server side and second time as client side
-
the info says it can be used for driving on walls, but i can add the gravity limit on the numbers i choose right? so it can be used for making high jumps in stunts? bool setVehicleGravity ( vehicle theVehicle, float x, float y, float z ) i dont understand what the float's part are
-
hello, i was doing some stunts, and i started wondering, is it possible to add low gravity on 1 vehicle? so that when people use that vehicle, that low gravity is enabled, but when they leave the vehicle, the gravity is back normal is this possible, if yes, how? thanks
-
Hello, I am thinking of buying a dedicated server soon to host my server on. Are here people who can tell me where to go to for this? Will a dedicated server solve or reduce players lag problem like when other players connect some players in game have lag untill those players are ready downloading the map files Thank you
-
ah thx i tried it first to make it work without making the codes double, but here it is now
-
hey, i have added a part for godmode for moderators in it original /godmode command for admins is still the same command for moderators is /god here is server script thx again solidsnake function toggleGodMode(thePlayer) local account = getPlayerAccount(thePlayer) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) ) then if getElementData(thePlayer,"invincible") then setElementData(thePlayer,"invincible",false) outputChatBox("God Mode is now Disabled.",thePlayer,0,255,0) else setElementData(thePlayer,"invincible",true) outputChatBox("God Mode is now Enabled.",thePlayer,0,255,0) end end end addCommandHandler("godmode",toggleGodMode) function toggleGodMode(thePlayer) local account = getPlayerAccount(thePlayer) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Moderator" ) ) ) then if getElementData(thePlayer,"invincible") then setElementData(thePlayer,"invincible",false) outputChatBox("God Mode is now Disabled.",thePlayer,0,255,0) else setElementData(thePlayer,"invincible",true) outputChatBox("God Mode is now Enabled.",thePlayer,0,255,0) end end end addCommandHandler("god",toggleGodMode)
-
hello, i have found this resource on the community website, i think this could be very usefull for players to have stats https://community.multitheftauto.com/index.php?p= ... ails&id=46 to get it work, players need to do /save password and then /unlock password so they can open the stats panel with f7 button i tried to make it possible to skip the commands so players can open it directly with pressing F7, i got more errors then something good lol i hope somebody here knows what to do with it, this could be nice to use on servers grts
-
yeah i know its odd.. i have tried to rename the map, change a minor detail in the script so i could try refresh i tried other loginscreens, and i only have it when i change the name, maybe it will be over when i can update to stable 1.3 version
-
hello, i got a stupid bug when i rename my server, no mather how i change it, i save, i start server, i connect, but the login screen is gone, when i put the server name back on what it was, and restart server and connect, the login panel is back,its the same when i try other login panels i used be not like this lol does anybody had a bug like this before?
-
haha now it works nice !! thx man
-
solid is it possible that it still wont work? well i go to terroristpickup, i go in car, i do /blow or /destroy but nothing happens i tried the mechanic team to just to be sure but that is still working, i dont understand
-
yes but i dont always know the right terms to search it either, thx for the links
-
thanks solid, i hope this works i see what u changed now, is there a wiki page or some page somewhere with script commands like function this and that? it takes lots of time sometimes to figure out one right word lol thx man
-
the script i showed of mechanic works, but the script i changed for terrorist dont, when i take the team pickup in game of terrorist, everything is normal, chat message that says u joined team, name in team at scoreboard, everything normal, but i cant get the destroying to work yes once it will work i'll add more then the ammount they earn with it so it compensate what they lose, terrorists mostly die with their act, will the car blow the moment u press the command or will it start fire first for a few seconds? then the terror can jump out and the driver might be to late to jump out cuz he dont know whats going on lol if it can be handy, here is the team script of mechanic and terrorist, i think i changed the stuff correctly, feel free to test mechanic1 = createPed(50,-2614, 1354, 7, 0) setElementHealth(mechanic1, 100) mechanicpickup = createPickup (-2614, 1354, 7, 3, 1275, 15000 ) function mechanicskinpickup ( thePlayer ) setPedSkin ( thePlayer, 50 ) setPlayerTeam ( thePlayer, teammechanic ) setElementData ( thePlayer, "zombie", false ) outputChatBox ( "* " .. getPlayerName(playerWhoUses) .. " joined mechanic team", getRootElement(), 255, 255, 0,false) end addEventHandler ( "onPickupUse", mechanicpickup, mechanicskinpickup ) mechanic2 = createPed(50,1985, 2046, 10.8, 0) mechanicpickup2 = createPickup (1985, 2046, 10.8, 3, 1275, 15000 ) addEventHandler ( "onPickupUse", mechanicpickup2, mechanicskinpickup ) --terrorists- teamterrorist = createTeam ( "terrorists", 255, 255, 0 ) terrorist1 = createPed(96,-1015.9838867188, -693.84259033203, 32.0078125, 0) setElementHealth(terrorist1, 100) terroristpickup = createPickup (-1015.9838867188, -693.84259033203, 32.0078125, 3, 1275, 15000 ) function terroristskinpickup ( thePlayer ) setPedSkin ( thePlayer, 96 ) setPlayerTeam ( thePlayer, teamterrorist ) setElementData ( thePlayer, "zombie", true ) end addEventHandler ( "onPickupUse", terroristpickup, terroristskinpickup ) addEventHandler ("onPickupUse", getRootElement(), function (playerWhoUses) if (source == terroristpickup) then setPlayerNametagText (playerWhoUses, "" .. getPlayerName (playerWhoUses)) setElementData (playerWhoUses, "job", "farm") outputChatBox ( "* " .. getPlayerName(playerWhoUses) .. " joined terrorist ", getRootElement(), 255, 255, 0,false) end end)
-
hmm i cant get it to work strange, cuz the original script is just this --MechanicFix function fixCar (player,command) skin = getPedSkin (player) if ( skin == 50 ) then local vehicle = getPedOccupiedVehicle(player) if (vehicle) then fixVehicle(vehicle) takePlayerMoney(player,100) end end end addCommandHandler("repair" , fixCar) addCommandHandler("rp" , fixCar) this is how i changed it now --terroristdestroy function blowVehicle (player,command) skin = getPedSkin (player) if ( skin == 96 ) then local vehicle = getPedOccupiedVehicle(player) if (vehicle) then destroyVehicle(vehicle) takePlayerMoney(player,100) end end end addCommandHandler("destroy" , blowVehicle) addCommandHandler("blow" , blowVehicle)
-
Hello, I'd like to know whats the right word to make cars explode. For example, mechanic have addevent ... "Fixcar", If possible i'd like to make a terrorist job where others can blow up your car, like when mechanic gets in a car and do the command, id like to do the opposite then mechanic. Thx
-
No problem thx man i will test it after work
-
hey scooby, i'm testing your script, i have one error when i try to spawn a car, ERROR: veh\vehiclepanel_s.lua:11: attempt to index global 'carSpawnCounter' (a nil value) it wont spawn a car
-
Thanks man. i will test this right after work and let u know about it