aintaro
Members- 
                
Posts
135 - 
                
Joined
 - 
                
Last visited
 
Everything posted by aintaro
- 
	when I use this element on a vehicle, my vehicle just floats in the air...
 - 
	Hello guys, How would I make an element that does not collide with other elements? Thanks in advance, Greetz, Aintaro
 - 
	Hey, I stream my progress when programming in mtasa. Twitch stream : http://www.twitch.tv/aintaro Come and take a look if you"re new or experienced see ya there!
 - 
	Hello, I'm looking for a team to start a project with to program a mtasa server. I got about 6 months experience. If anybody looks for some programmer, hit me up in a private message or comment below! Greetz, Aintaro
 - 
	ahh that makes sense, thanks it worked!
 - 
	Hello, How can i make that when a player is in a vehicle and hits a pickup he gets a reward for it. I tried using the event : onPickupHit (server sided) but I do not get the message "you have picked up a m4"; why is that? I used the wiki code : local aPickup = createPickup ( 10.0, 10.0, 10.0, 2, 31, 3000, 50 ) --Create an M4 weapon pickup when script starts function pickedUpWeaponCheck ( player ) outputChatBox ( "You have picked up a M4.", player ) --Display this message in the chat box end addEventHandler ( "onPickupHit", aPickup, pickedUpWeaponCheck ) thanks in advance, greetz Aintaro
 - 
	ah thats sad. Thanks for letting me know
 - 
	Hello, Is it possible to change/delete hardcoded commands like "logout" and "login" etc... And how should I do it? Thanks in advance, Greetz, Aintaro
 - 
	I found the issue : onplayerconnect will only execute when another player joins the server. So basicly when you are testing on your machine you will not get the message with your ip and such because it only sends it to other players that are already connect on the server. Therefor I found another server event wich is called onPlayerJoin. onPlayerJoin will handle the player that just connected to the server instead of handling all the other players that are already connected. so the sum it all up : If you want other players to get a message when a specific player logs in then use : onPlayerConnect If you want the player that just connected to get a welcome message then use : onPlayerJoin Thanks again everybody for the help that you offered. Greetz, Aintaro
 - 
	Hello when I use the onplayerconnect event from the mtasa wiki example nothing happens : --when a player connects function playerConnect (playerNick, playerIP, playerUsername, playerSerial, playerVersionNumber) if playerNick == "Player" then --check if his nick is "Player" cancelEvent(true,"The nick \"Player\" is not allowed, please change it to something else. You can change your nick in Settings menu Multiplayer tab.") --in that case refuse the connection else --output some data about the player outputChatBox (playerNick.." just connected to the server.") outputChatBox ("IP: "..playerIP.." Username: "..playerUsername.." Serial: "..playerSerial) end end --add the playerConnect function as a handler for onPlayerConnect addEventHandler ("onPlayerConnect", getRootElement(), playerConnect) is this event broken?
 - 
	Oh thanks for the information, didn't know that
 - 
	Hello guys, I want a player to be teleported back to he's original spot when he disconnects from the server but it doesn't work, here is my code: server side : function loggedOut() triggerClientEvent("closeTuneInterface", root, closeTuneInterface) end addEventHandler("onPlayerLogout",getRootElement(),loggedOut) client side part: function closeTuneInterface() if (isPedInVehicle(getLocalPlayer())) then local vehicle = getPedOccupiedVehicle ( getLocalPlayer()) setElementPosition(vehicle, 1910, -1758 , 14 ) setElementFrozen ( vehicle, false ) setCameraTarget(getLocalPlayer()) setCameraTarget ( getLocalPlayer() ) setHideWorldInterface(false) if (GUIEditor.window[1]) then givePlayerInput(false) destroyElement ( GUIEditor.window[1] ) GUIEditor.window[1] = nil end if (GUIEditor.window[2]) then destroyElement ( GUIEditor.window[2] ) GUIEditor.window[2] = nil end else setElementPosition(getLocalPlayer(), 1910, -1758 , 14 ) setCameraTarget(getLocalPlayer()) setCameraTarget ( getLocalPlayer() ) end end addEvent("closeTuneInterface", true) addEventHandler("closeTuneInterface", root, closeTuneInterface)
 - 
	I found why some vehicles do not reach topspeed, you might wanna read this : Notes on Top Speed It is interesting that the vehicle does not always achieve the TopSpeed value of 180km/h, which becomes 214km/h in the game. When the Acceleration is too small relative to the Drag setting, the vehicle will not reach its TopSpeed setting. This means that the TopSpeed setting is simply a limit to the speed of the vehicle. Your vehicle might never actually reach this speed.
 - 
	Look at the video it will explain it :
 - 
	no it's not working, the kph and vehicle velocity is not the same...
 - 
	Hello guys, I'm trying to see what the max speed of a vehicle is, but most of the vehicle maxvelocity is not right, for example it would print out 160, but the max speed of the vehicle is 115 kph. Found out why : Notes on Top Speed It is interesting that the vehicle does not always achieve the TopSpeed value of 180km/h, which becomes 214km/h in the game. When the Acceleration is too small relative to the Drag setting, the vehicle will not reach its TopSpeed setting. This means that the TopSpeed setting is simply a limit to the speed of the vehicle. Your vehicle might never actually reach this speed.
 - 
	I think because your parameter name is : afkList (thePlayer) -- thePlayer is also used in the loop, so try to change that.
 - 
	Hello guys, Is there any way to get the maximum vehicle speed when you enter a vehicle? thanks in advance, Aintaro
 - 
	Hello guys, How do I retrieve certain information from a certain column in a table with sql? thanks in advance, greetz Aintaro
 - 
	How do I check my tables and rows in my database? like is there some sort of editor ?
 
