Norhy
Members-
Posts
125 -
Joined
-
Last visited
Everything posted by Norhy
-
Hey guys, i want to make the money that the player has to appear in the Scoreboard under the collum "money". How do i do that?
-
I just noticed that it was not the problem, however thanks.
-
I have a button, on which when the player click he should be spawned, but it doesn't work. -- Client-side: addEventHandler('onClientGUIClick', root, function() if source == btnTest then triggerServerEvent ( "spawnTest", source ) end end) -- Server-side: function spawnTest ( ) spawnPlayer ( source, 2500.78955, -1672.70386, 13.35180, 0, 0, 0, 0 ) fadeCamera ( true ) end addEvent ( "spawnTest", true ) addEventHandler ( "spawnTest", getRootElement ( ), spawnTest ) However it doesn't work, i have no errors / warning.
-
Hey guys. So i've made a Background for my Login GUI. I have this code: background = guiCreateStaticImage( 0.01, 0.01, 1600, 1200, "bg.png", false, wdwLogin ) guiSetAlpha ( background, 10 ) Everything works nice, however when i try to click on a button or and input field, it doesn't respond because the image is there, i tried to make the Login GUI Always on top, but it didn't work. How to make the Image to work as an Background?
-
Hey guys. I have a Text label attached to a gui Tab, however when i have a long text, the rest of the text is not shown. I mean the text is not visible in the GUI, because it is too long. My code: guiCreateLabel( 0.02, 0.04, 0.94, 0.92, "This gamemode is based on the Demolition Derby game, Flatout and Flatout 2. We have some custom Vehicle models from this game, also we have simple Demolition Derby maps. In our maps, there are no fixes, only nitro for higher Damage. In real life, you couldn't repair your vehicle by just driving over a fix thingy, so you'll have to take care of your car.", true, tabHelp ) How to fix this?
-
Okay, i've got a problem. I was normally playing a map with checkpoints, i've got 1 win and 100 points when i finished. We wanted to test a DD map with my friends, so no chceckpoints. Once i destroyed all and was first, i didn't got any points and a win. How to make it possible so i will get points and a win at DD too? Not only at checkpoint races..
-
Hey guys, i have this code: function saveWins ( ) local account = getPlayerAccount ( source ) if ( account ) and not isGuestAccount ( account ) then local wins = getElementData ( source, "wins" ) or 0 setAccountData ( account, "flatout.wins", wins ) end end addEventHandler ( "onPlayerQuit", getRootElement ( ), saveWins ) function loadWins ( _, account ) if ( account ) then local wins = getAccountData ( account, "flatout.wins" ) if ( wins ) then setAccountData ( account, wins ) end end end addEventHandler ( "onPlayerLogin", getRootElement ( ), loadWins ) I don't get any error. When i finish a map, i get +1 win, and when i type /wins it shows i have that amount of wins, but when i disconnect and login i have 0 wins, so it will reset everytime. How to fix that? I was using the wiki, and i don't have any errors/warnings.
-
Hey guys. So i'm scripting now for a while, also a guy teaches me, however we both do not know how to save data which is set by setElementData, also the same for money. I was trying to look for some functions related to account, but i was noy successful, any ideas? Using Tapatalk.
-
The title says everything. I want to attach a Minigun to a NRG-500, a shotable minigun. I know it's possible, but what's the function?
-
Hey guys. So, today i've been trying to use the bindKey functions, and well, i found something weird. I was standing near a minigun that i created. When i pressed CTRL to shoot it, and after it F ( Enter ), my char. began to run to a Caddy. When i wanted to get out it placed me on the passenger sit and my PC freezed for about 2 - 3 sec. Here's a video. https://www.youtube.com/watch?v=OpfVe- ... e=youtu.be
-
I need this in Server-side, not Client-side. Thanks.
-
Hey guys. How to make a outputChatBox message visible only for the player who typed a Command? Thanks.
-
Alright, thank you for your patience and help, i'll try to make it on my own.
-
But if i want to use this i need to get the players online or? Because if i have let's say 10 ranks and 3 players are online (10 - 3 = 7) the 7th rank will be taken as the 1st
-
Coule you give me an Example? I'm a noob at this
-
Thanks. One last question, is it possible to find out on which place the player died in race? I mean if there are 3 player connected, and he dies on the 3rd place, he'll get the lowest amount of money, on 2nd more amount of money and on first the most amount of money? If so, how?
-
Thanks Castillo, you were always a great helper. However you may be confused why i use 'kills' as 'points', it's because i don't know if the system will know what 'points' data is when i use it with setElementData. However it works now. I have also maked a system when you die you get money and 1 point, but it doesn't work function deathMoney ( player ) givePlayerMoney ( source, 1000 ) outputChatBox ( "hi", getRootElement(), 255, 255, 255, true ) setElementData ( player, "points", 1 ) end addEventHandler ( "onPlayerWasted", getRootElement(), deathMoney ) By the way, is it possible to add (+) the 'points'? Because using setElementData it will always set points to 1. Thanks for you help and patience.
-
Hey guys, i'm making a simple points system, but i'm getting an error. function checkPoints ( player, command ) local points = getElementData ( player, "kills" ) outputChatBox ( "Points: " .. points, player, getRootElement(), 255, 255, 255 ) end addCommandHandler ( "points", checkPoints ) I get the error: " attempt to concatenate local 'points' ". I've also tried this code: function checkPoints ( player, command ) outputChatBox ( "Points: " .. getElementData ( player, "points" ), player, getRootElement(), 255, 255, 255 ) end addCommandHandler ( "points", checkPoints ) But i get the error with this code too. How to solve this?
-
Hey guys. I've got a little problem i can't solve somehow. When a player finished a DM map, then the votepanel pops up. But i want him to finish the race so he has a chance to get a Hunter, more Points and Cash. I don't want that people vote a map, i just want to make the last player finish the map. Any way how to solve that?
