Greenie0101
Members-
Posts
126 -
Joined
-
Last visited
Everything posted by Greenie0101
-
sorry if i wasn't clear, i mean if a player is hitting a wall while running. I want to do a parkour script where when you run into a wall you run up it for a bit but i need to detect if the player is in contact with a wall
-
Sorry that i haven't really looked into this myself. Just wondering what a good way to detect a player jumping into a wall is.
-
Ok im at school but ill be home in 6 hours. Ill try it then. Thanks for the help works thanks alot all
-
function addToScoreBoard() exports [ "scoreboard" ]:scoreboardAddColumn("playerKills", getRootElement(), 70, "Kills", 3) end addEventHandler ( "onResourceStart", getRootElement(), addToScoreBoard )
-
How do i add kills and playtime to the scoreboard? I have an account data for kills so i think i can use that number for the kills but how do i get it into the scoreboard?
-
lol fuck im retarded if that works sorry for wasting you're time
-
Hey i want to learn to move a dximage. I think i know how to do it, just defining the poition and adding to the x axis every frame. But what maths can i use to make it add 1 to the position.
-
ok its been a while but i want to come back to this. I want this so that i can put it in the parachute recource so that i glide more than fall. At the moment i did my parachute resource so that if im not holding controls it sets my velocity as x+1 and y+1 but of curse that just has me shooting off 45 degrees NE. How can i set my velocity to make myself go forward as im falling in parachute script
-
thanksNEW COMMENT (didn't want to double post) I tried 50p's script, like it. Mind if i edit it tho? (replace the screenshot with a map and try to make it work?)
-
Can someone just help me lol
-
Look shut up abot that. i never said i was professional, but i belive im good enough. just tell me how i can do this please
-
Hey can someone give me the functions I need to make a ped follow me on foot? It would be greatly appreciated. Thankyou
-
I've been scripting for several months now, I've made about 50 scripts or more, am currently making my third gamemode and understand most things. I just haven't used this function before. Now can you please just help? Besides it's not just helping me. It's helping every other person wh googles 'mta sa custom minimap'
-
ok i sort of get what you mean but i've never used dxDrawImage. How can i make it move with the player? I imagine ill need to use dxDrawImageSection?
-
Hey I am really interested in making a custom minimap cos im sick of the GTA one but i want one which works for everyone on the server. What functions can i use? I havent got any script as i dont know where to start on this i thinking of using showPlayerHudComponent to hide the minimap that is there and then make the new map on a GUI. How do i do this?
-
my bad, the team was actually called Las Venturas and thats why it wouldn't open. got it working tho. Thanks for all you're help! I'll make a video tutorial on how to make a gate soon for people who dont want to go through this process
-
yes it didn't work. The only wrong thing is that it opens for all teams not just LV
-
Is LV (in line 6) a team element? I don't see it defined anywhere. this one works thanks mate however im having one small issue. LVgateL = createObject ( 986, 2497.3999023438, 2769.1999511719, 11.5, 0, 0, 90 ) LVgateR = createObject ( 985, 2497.3999023438, 2777.1000976563, 11.5, 0, 0, 90 ) LVsensor = createColRectangle(2471.5, 2763.2, 50, 20) function LVgateOpen(theColShape) if theColShape == LVsensor then if getPlayerTeam(source) == getTeamFromName("LV") then moveObject(LVgateL, 2000, 2497.3999023438, 2760, 11.5) moveObject(LVgateR, 2000, 2497.3999023438, 2787, 11.5) end end end addEventHandler( "onElementColShapeHit", getRootElement(), LVgateOpen ) function LVgateClose(theColShape) if theColShape == LVsensor then if getPlayerTeam(source) == getTeamFromName("LV") then moveObject(LVgateL, 2000, 2497.3999023438, 2769.1999511719, 11.5) moveObject(LVgateR, 2000, 2497.3999023438, 2777.1000976563, 11.5) end end end addEventHandler( "onElementColShapeLeave", getRootElement(), LVgateClose ) that is the script now but the gate opens for all teams, not just the LV one
-
Is LV (in line 6) a team element? I don't see it defined anywhere. its part of a gamemode with a team called LV
-
badPlayerPointer @ getPlayerTeam
-
im trying to make a script where if someone on the LV team enters a colrectangle the gate door opens LVgateL = createObject ( 986, 2497.3999023438, 2769.1999511719, 11.5, 0, 0, 90 ) LVgateR = createObject ( 985, 2497.3999023438, 2777.1000976563, 11.5, 0, 0, 90 ) LVsensor = createColRectangle(2471.5, 2763.2, 50, 20) function LVgate(theColShape) if theColShape == LVsensor then if getPlayerTeam(source) == LV then moveObject(LVgateL, 2000, 2497.3999023438, 2760, 11.5) end end end addEventHandler( "onElementColShapeHit", getRootElement(), LVgate ) no idea what im doing wrong
-
Hi there, i have added custom cars to my gamemode and i want to make a script that changes that cars name to the name of the mod (i've modded a BMW M3 to my hotring, how can i make the text say 'BMW M3' instead of Hotring when i enter it?)
-
Hey, is it possible to add a model to the game, not replacing any existing models?
-
already have and couldn't find anything. Thats y im asking here
