haybail
Members-
Posts
145 -
Joined
-
Last visited
Everything posted by haybail
-
maybe there in here? Over 7000 MTA Race maps but you can find some: viewtopic.php?f=65&t=21034
-
Spam users in MTA forums
haybail replied to Ace_Gambit's topic in Site/Forum/Discord/Mantis/Wiki related
maybe not? theres one back already. jewellery anybody? edit: oh wait, look when he joined Sat Jul 26, 2008 3:28 am -
I can't see my health, armor, weapons, or money bar (Help!)
haybail replied to Jayster's topic in DM Client-side
could u try dp2 if you say it worked with dp2.1. maybe its the new version or a setting got changed or broken. -
did you have a quick look over the wiki? there might be something there you might be able to try. http://development.mtasa.com/index.php? ... sues_-_FAQ
-
could it be because the serial system is broken? very few people are able to get in right now cause of it. you can have a look here and on the support forums. viewtopic.php?f=89&t=23255 viewforum.php?f=89
-
u mean quick connect? u only put the password if the server requires one. otherwise its only ip and port. leave it blank.
-
does that mean nobody can edit the wiki?
-
"Project Artificial Intelligence" crew sing up.
haybail replied to Garfield's topic in General discussion
1. William 2. 20 3. [email protected] 4. betatester 5. very little. counter-strike bots? and the AI movie 6. I think I could help. I have a basic understanding of lua. I tested thoroughly the scripts I wrote so I have a tiny bit of experience. And I been around race a long time so i've seen alot around mta. but not as much as old school people. -
they says its cause of 1.1.2. people who don't like it tend to use 1.1.1 and http://www.game-monitor.com/search.php?game=mta . you both should do that.
-
hi. im new here. i use to vist alot during race. whats up.
-
i did some examples for the incomplete wiki functions but I didn't have an account on there. would someone like to do the honors? i didnt like to see them missing and when they were it was an inconvenience cause you couldn't copy past the addEvent This example outputs the name of the element to chat function onClientElementStreamIn () outputChatBox ( getElementType ( source ) ) end addEventHandler ( "onClientElementStreamIn", getRootElement(), onClientElementStreamIn ) This example destroys the element function onClientElementStreamOut () destroyElement ( source ) outputChatBox ( "element destroyed" ) end addEventHandler ( "onClientElementStreamOut", getRootElement(), onClientElementStreamOut ) This example outputs BOOM when a client resource is started function onClientResourceStart ( startedResource ) outputChatBox ( "BOOM" ) end addEventHandler ( "onClientResourceStart", getRootElement(), onClientResourceStart ) This example throws a player into the ocean function onClientResourceStop ( stoppedResource ) -- check if the resource stopped is this one if stoppedResource == getThisResource ( ) then setElementPosition ( getLocalPlayer(), 60, 165, 5 ) end end addEventHandler ( "onClientResourceStop", getRootElement(), onClientResourceStop ) This example outputs information about the change but its broken function onElementDataChange ( theName, theOldValue ) outputChatBox ( "element data of " .. theName .. " has been changed" ) outputChatBox ( "old value was " .. theOldValue ) end addEventHandler ( "onElementDataChange", getRootElement(), onElementDataChange ) function onCommandTest ( playerSource ) if not button then button = createVehicle ( 429, 0, 0, 5 ) setElementData ( button, "type", 0 ) end outputChatBox ( getElementData ( button, "type" ) ) setElementData ( button, "type", 800 ) outputChatBox ( getElementData ( button, "type" ) ) end addCommandHandler ( "test", onCommandTest ) This example creates a marker or destorys an element when a player clicks but its broken function onPlayerClick ( mouseButton, buttonState, clickedElement, worldPosX, worldPosY, worldPosZ ) -- check if the click is left click if mouseButton == "left" then -- check if state is down and not up too if buttonState == "down" then -- if a element is clicked if clickedElement then -- destroy it destroyElement ( clickedElement ) -- else else -- create a marker where the player clicked createMarker ( worldPosX, worldPosY, worldPosZ, "arrow", 2.0 ) end end end -- output who clicked outputChatBox ( getClientName ( source ) .. " clicked" ) end addEventHandler ( "onPlayerClick", getRootElement(), onPlayerClick ) This example attempts to center a player if he hits a cylinder createMarker ( 0, 0, 3.11, "cylinder" ) function onPlayerMarkerHit ( markerHit, matchingDimension ) -- if the marker is a circle if getMarkerType ( markerHit ) == "cylinder" then -- get the spot of the marker local x,y,z = getElementPosition ( markerHit ) -- put the player at that spot setElementPosition ( source, x, y, z ) -- freeze the player so he doesnt walk out too quick toggleAllControls ( source, false, true, false ) -- unfreeze the player so he can continue setTimer ( toggleAllControls, 750, 1, source, true, true, false ) end -- announce the player who hit outputChatBox ( getClientName ( source ) .. " hit" ) end addEventHandler ( "onPlayerMarkerHit", getRootElement(), onPlayerMarkerHit ) This example outputs information when a player leaves function onPlayerMarkerLeave ( markerLeft, matchingDimension ) -- get the colour local r,g,b,a = getMarkerColor ( markerLeft ) -- output the results outputChatBox ( "red: " .. r .. " green: " .. g .. " blue: " .. b .. " alpha: " .. a ) outputChatBox ( "marker count: " .. getMarkerCount() .. " marker icon: " .. getMarkerIcon ( markerLeft ) .. " marker size: " .. getMarkerSize ( markerLeft ) ) -- if the marker has a next in line like a checkpoint or a plane ring if getMarkerTarget ( markerLeft ) then -- output its position local x,y,z = getMarkerTarget ( markerLeft ) outputChatBox ( "next marker at " .. x .. " " .. y .. " " .. z ) end outputChatBox ( "marker type: " .. getMarkerType ( markerLeft ) .. " player who left: " .. getClientName ( source ) ) -- finish end addEventHandler ( "onPlayerMarkerLeave", getRootElement(), onPlayerMarkerLeave ) This example outputs a message when a player is no longer targeting an element function onPlayerTarget ( targettedElement ) -- check if the player is looking away if not targettedElement then outputChatBox ( "you were looking at something", source ) end end addEventHandler ( "onPlayerTarget", getRootElement(), onPlayerTarget ) This example throws a player out of his car and tells him to try again if he tries to pickup something whilst in a vehicle function onPlayerPickupHit ( pickupHit, matchingDimension ) -- check if the player is in a vehicle if isPlayerInVehicle ( source ) then -- throw the player out removePlayerFromVehicle ( source ) -- tell him to try again outputChatBox ( "try again" ) -- cancel the event so he doesnt get it cancelEvent () end end addEventHandler ( "onPlayerPickupHit", getRootElement(), onPlayerPickupHit ) This example outputs to everyone what weapon a player picked up if any function onPlayerPickupUse ( thePickupToUse ) -- if the pickup is a weapon if getPickupType ( thePickupToUse ) == 2 then -- get the weapons id local id = getPickupWeapon ( thePickupToUse ) -- if its got one if id then -- get its name and output it outputChatBox ( getClientName ( source ) .. " picked up a " .. getWeaponNameFromID ( id ) ) end end end addEventHandler ( "onPlayerPickupUse", getRootElement(), onPlayerPickupUse ) This example checks if a player knows his account function onCommandLogin ( playerSource, commandName, arg1, arg2 ) -- check if a player has given his arguments if arg1 and arg2 then -- put the arguments in arg1 for username arg2 for password if getAccount ( arg1, arg2 ) then outputChatBox ( "player knows his account" ) else outputChatBox ( "player doesnt know his account?" ) end end end addCommandHandler ( "login2", onCommandLogin ) http://development.mtasa.com/index.php? ... ds_Example
-
i assume u would but did u have a look through debugscript? it helps with those errors especially client side ones. http://development.mtasa.com/index.php?title=Debugging edit: oh you didnt run it already, my mistake.
-
getElementsWithinColShape works in dp2? just only with players and vehicles.
-
but they could fix mtabeta and then people could play. but still not as many cause not everyone knows how.
-
i could give it a go. i think i could do it. but im only a beginner lua scripter.
