-
Posts
512 -
Joined
-
Last visited
Everything posted by 3B00DG4MER
-
halted ? that's will be good if you guys start working on it again ..
-
MTA:SA Team, We're really Excited to see the update that let scripters make the game more custom-able, The custom animation will change MTA to another game ! There will be new server types : like parkour servers, The game will be amazing with it ! Are you with me guys ?! ....
-
[Outdated] Unofficial MTA Script Editor 0.3 (4851) RELEASED!
3B00DG4MER replied to 50p's topic in Scripting
i think 50p is out of scripting ... -
toggleControl ("radar",false) This one is better
-
He didn't wrote that at first time * He edited it and colshape for that i think gives lagg, why don't u use math better than creating colshapes get distance then check if distance is lower then 15 or something then cancel event and output again
-
Daf***k it's not your Problem, then why you post it ?!
-
use getDistanceBetweenPoints3D better
-
Hi guys, today i was trying to make Peds get out from Vehicle, i tried to use setPedControlState(ped,"enter_exit",true) but it won't work ! Please need help, ** I think that has relation with http://bugs.mtasa.com/view.php?id=0005494
-
Maybe you're not on that team
-
So you say wait until MTA:SA Team fix it ?
-
OMG, you don't know anything what we're talking about
-
https://bugs.multitheftauto.com/view.php?id=8792 Help me guys with some solutions
-
I know that
-
Okay look, if a ped is in vehicle i can't enter to it (i can't steal it, like in GTA)
-
OMG,Why do I've to set the seat while by default it's 0 and the problem is not when Warping the ped the problem when trying to enter to a vehicle it's has got already a ped( Jacking)
-
No, you didn't understand When I TRY to enter and the ped is in the vehicle I can't enter to it
-
I think it's, setTimer ( setElementData, 600, 1, slothbot, "status", "following") -- I found that on script
-
Hi guys, today I was working on Vehicle and Peds I tried to warp a ped into a Vehicle than I tried to enter the vehicle, I was unable to do it here's a code it's basic, I think it's MTA:SA Bug x,y,z = getElementPosition(getRandomPlayer()) -- i'm alone at the server , so it's should get me veh = createVehicle(411,x,y,z) -- creating the vehicle ped = createPed(211,x,y,z) -- creating the ped warpPedIntoVehicle(ped,veh) -- Warping Ped into the Vehicle addEventHandler("onVehicleStartEnter",root,function() outputChatBox("You are trying to enter a vehicle !") end) -- This event won't get called ! Note : when I kill the Ped I can enter to the vehicle and the event called
-
cuz there's many players and he can't be in all teams
-
I've set him follow me but he still chase me
-
I've set the mode "following" but he keep chase anyone and try to kill him
-
Oh I forgot, this is code of Slothman, It's should return the ped but when I call it won't function spawnBot(x, y, z, rot, skin, interior, dimension, team, weapon, mode, modesubject) --checks the function commands to see if all neccesary parts are filled, sets defaults if not or returns false. if not x then return false end if not y then return false end if not z then return false end if not rot then return false end if not skin then skin = 0 end if not interior then interior = 0 end if not dimension then dimension = 0 end if isElement(team) == false then team = nil end if not weapon then weapon = 0 end if not mode then mode = "following" end if not modesubject then modesubject = client end if mode == "following" then if not modesubject then return false end end if mode == "chasing" then if not modesubject then return false end end local slothbot = createPed (tonumber(skin),tonumber(x),tonumber(y),tonumber(z))--spawns the ped if (slothbot ~= false) then triggerEvent ( "onBotSpawned", slothbot ) setTimer ( setElementData, 200, 1, slothbot, "slothbot", true ) -- makes it a bot setTimer ( setElementData, 200, 1, slothbot, "AllowFire", true ) -- makes it able to shoot when it wants setTimer ( assigncontroller, 300, 1, slothbot ) --sets the bots controller setTimer ( giveWeapon, 800, 1, slothbot, tonumber(weapon), 99999, true ) --gives the weapon setElementData(slothbot, "BotWeapon", tonumber(weapon)) if team ~= nil then setElementData(slothbot, "BotTeam", team) end setTimer ( setElementInterior, 100, 1, slothbot, tonumber(interior)) --sets interior setTimer ( setElementDimension, 100, 1, slothbot, tonumber(dimension)) --sets dimension --sets the mode if mode == "waiting" then setTimer ( setElementData, 600, 1, slothbot, "status", "waiting") elseif mode == "following" then setTimer ( setElementData, 400, 1, slothbot, "leader", modesubject ) setTimer ( setElementData, 600, 1, slothbot, "status", "following") elseif mode == "chasing" then setTimer ( setElementData, 400, 1, slothbot, "target", modesubject ) setTimer ( setElementData, 600, 1, slothbot, "status", "chasing") elseif mode == "guarding" then setTimer ( setBotGuard, 400, 1, slothbot, x, y, z) else setTimer ( setElementData, 600, 1, slothbot, "status", "hunting") end return slothbot end end
-
Hi guys, i'm making a bot follows player and I don't know if problem was from Slothbot resource or My Code Server : local bot = call ( getResourceFromName ( "slothbot" ), "spawnBot", x,y,z,0,0,0,false,0,"following",p) Slothbot : https://wiki.multitheftauto.com/wiki/Slothman/Slothbot