-
Posts
2,973 -
Joined
-
Last visited
-
Days Won
3
Everything posted by 50p
-
createMarker is a function that you can use to place markers with script. That's what I use to create my bank locations. You don't have to use this function if you make markers in map files. onMarkerHit and onPlayerMarkerHit are events. Events are triggered whenever something happens, in this case, when you/vehicle hit (touch) the marker. So you can use one of those events to make 1 team win when they touch the marker.
-
MTA Quality Assurance team doesn't develop MTA, they are there to make sure the mod works as it should. "and also to everyone that I try to help", that made me ROFL. You want to thank those who you try to help? Anyway, if you're trying to make a gamemode you'd use maps (map files) and put your teams/spawnpoints inside of them. Not being able to see other players on the radar is there since the start. If you want to see players on the radar you need to make a resource that creates blips on the radar. If you've visited servers that create blips on the radar it means they have such resource. You can run "broph" resource which is basically freeroam and has blips attached to players. You can take a look inside that script to find out how it's done (createBlipAttachedTo). To make different goals, you need to know how MTA's events work. You can then execute some code whenever something happens, like when they reach a target ("red cylinder" (marker), or even collision shape). - createTeam - createBlipAttachedTo - createMarker (a "red cylinder", or any other type of marker) - col shape functions - onMarkerHit or onPlayerHitMarker or onColShapeHit - onPlayerWasted
-
Ah, I was hoping to see a proper GUI Editor that doesn't force you to enter game to make your GUI... and I didn't say I'm making it... I tried but I'm not.
-
Where can I download a non-in-game GUI Editor? I'd love to see it!
-
Well, I can make simple calculations but what will that help me with if you can't rotate an image? I made a new version of the speedo for 1.0 and it does rotate an image but I don't want to release it because I want to add a lot of new features. Anyway, when we started this project I managed to got only 20 functions from the wiki into xml because I was copying'n'pasting everything from the wiki but he used a script so not much work for him ;P I think I won't make it because when I use MTA's cgui.dll, my DirectX window stops rendering and I can't render GUI in a window that is not showing up ;P Maybe some day in the future I'll investigate more and get this .dll to work properly.
-
You must first understand how scripts work and how to use functions, xbenny2506x. From what I see you haven't changed the script too much and therefore haven't learnt anything at all. I replied to your PM and you have the same answer here because that's what you need... removePlayerFromVehicle or removePedFromVehicle (for nightly builds).
-
Database file is register.db which is located in the server's root folder. When you create a table with executeSQLCreateTable function the table is stored in the database file.
-
It's a bug. The pickup will appear when it's streamed in. Go far away from the pickup location and come back, you will see it. The only solution would be to create the pickup in the same place and delete the one that respawns.
-
http://development.mtasa.com/index.php? ... ng_the_GUI
-
There is none. AFAIR, There was one but over one and half years ago. Make one and be famous.
-
First thing I wanted to say is that what you're trying to do is not safe, you can join with someone else's name and mess up his stats... They should login into their accounts. Use Account functions for it instead (if and ONLY if you're using 1.0 nightly builds, if you're using DP2.x don't use Account functions). This is an example how to loop through xml file: ... local rootNode = xmlLoadFile( "playerstats.xml" ); local usersNode = xmlFindSubNode( rootNode, "users", 0 ); local usersCount = 0; local playerNode = xmlFindSubNode( usersNode, "player", usersCount ); while playerNode do local name = xmlNodeGetAttribute( playerNode, "name" ); if ( name == "ArmedGuy-JNRNS" ) then outputChatBox( "user 'ArmedGuy-JNRS' found in xml file" ); end usersCount = usersCount + 1; playerNode = xmlFindSubNode( usersNode, "player", usersCount ); end ...
-
Hmm, maybe a GUI Editor? In Credits I say Cazomino05 made the xml files with functions and events (he used a script to get all these functions from the wiki).. so he's the guy.
-
When you have 1 variable which is true or false (or nil) it's not going to work when there is more than 1 player. You should use setElementData and getElementData or a table which I wouldn't recommend for beginners.
-
He dies after 10 seconds of respawn because when you respawn him he "leaves" the col shape and so the timer starts to kill the player. Why do you addEventHandler every time players enter col shape? Make one onPlayerWasted event handler and do checks in it. You probably get an error or warning message telling you that you've attached giveMoneyToKiller when you hit the col shape more than once.
-
Do you want to do this with MTA, or in-game? He wants everything in MTA. I'm pretty sure that when you have many custom objects the client will crash eventually.
-
Hi there, I've been busy with my real life stuff and couldn't do much work on SE (Script Editor) but hopefully will get back to it tomorrow. I've worked on a website for SE too, so stay tuned and you'll get a link.
-
What do you mean it doesn't work? "Doesn't work" is the most seen phrase on this forums but you're all not telling what doesn't work, what errors you get (if any)... takePlayerMoney doesn't work? The script doesn't even start? There are many things that may not work, tell us what doesn't work exactly.
-
OMG! You're just too lazy to find something that you need! I've been watching you and all your replies... You don't want to help yourself, you want people to do everything for you. Besides, you're "helping" other people even if you have absolutely no idea what you're talking about, then people are confused and don't know what to do. Think twice, search more.
-
No there is none... but I'm doing what I can to release it as soon as possible.
-
http://development.mtasa.com/index.php? ... terior_IDs
-
Because you're not a boss, giving orders and MTA developers work for free. They spend their free time on developing MTA instead of having spare time.
-
Use debug window! Don't just come here and ask why it doesn't work. You won't learn if you don't want to and it seems like you don't want to. Read a lot of wiki, read a lot of lua documentation. I have sent those links many times, even in one of your topics, AFAIR. And I'll say that again, use debug window ("/debugscript 3").
-
function sendprivatemessage ( playername, message ) local playerToSendTo = getPlayerFronNick( playername ); if( playerToSendTo ) then outputChatBox ( "PM "..getPlayerName( client ) .. ": ".. message, playerToSendTo, 255, 255, 0, true ); end end addEvent( "privateevent", true ); addEventHandler( "privateevent", getRootElement(), sendprivatemessage ); and also, triggerServerEvent( "privateevent", getRootElement(), playerName, text )
-
We will get a context menu for tree views and they'll have some functionality.