-
Posts
925 -
Joined
-
Last visited
Everything posted by norby89
-
that only changes the nametag you see in the gameworld, not his actual nickname
-
function changeBlurLevel() setPlayerBlurLevel ( source, 0 ) end addEventHandler ( "onPlayerJoin", getRootElement(), changeBlurLevel ) function scriptStart() setPlayerBlurLevel ( getRootElement(), 0) end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource() ), scriptStart )
-
lol'd basically yea
-
can you even change a player's nickname? I looked through the functions but couldn't find anything that does that
-
good work try making the player fly through the windscreen when hitting something hard
-
most probably not, if you search the forum you can find threads about how to get the Race editor load on Vista
-
cheers m8 EDIT: is there a way to have another category, like FUNC4 and put the list there?
-
yea that would be awesome
-
lol it's cool what I meant is that if you only find the positions and get the differences and use them as offsets for attachElementToElement, it will probably attach you in the wrong position I suck at explaining but I'll try anyway, in this pic the square is a vehicle and the dot is the player: (pic a) the vehicle's position and rotation is ( 0, 0, 0 ) the player is located a little bit to the south, ( 0, -1, 0 ) which means newX = x2 - x1 = 0 newY = y2 - y1 = -1 newZ =z2 - z1 = 0 ( 0, -1, 0 ) would be correct but if the vehicle is rotated 90 degrees to the right (pic b) the offsets would be.. newX = x2 - x1 = -1 newY = y2 - y1 = 0 newZ =z2 - z1 = 0 and the player would be attached to the left of the vehicle because attachElementToElement still expects ( 0, -1, 0 ) you need something that calculates the right offsets regardless of the vehicles rotation
-
that would only work if the vehicle's rotation was 0, 0, 0
-
I don't think that's what he needs, it's not that easy as it sounds he'd like to attach the player so it remains in the same position it involves rotations and trigonometry, I suggest looking for snippets on the Internet, you might find something
-
NO WAI!! seriously now, the map editor works on vista too
-
you can change the model (appearance of the car), for example you can replace the manana with a custom ferrari, atm you cannot modify handling meaning it will look different but it will drive like the original vehicle for more information about scripting and custom vehicles, check the dev wiki
-
you don't need to mod the game to change car skins, you can do that by using scripts (that's not cheating) PS) nobody will ban you for using cheats on your own server, anywhere else you will be banned, if you're cought cheating on an official server you'll also get a global ban
-
you can download it from here https://mtasa.com/dp.html (the large yellow button, you can't miss it ), just follow the instructions and have fun!
-
good observation, it might have to do with that
-
there's a similar project called the 'Myriad Islands' I'm sure many of you have heard of it, it started many years ago back in VC and it still isn't finished http://www.gtaforums.com/index.php?showforum=98 I'm just saying that doing a project like this involves a great amount of work and a lot of dedication, you can't just eat the fruit, first you have to plant the seed, watch the plant grow, water it regularly and if take good care of it you will receive a sweet fruit as a reward good luck!
-
function scriptStart() setTimer ( GiveMoneys, 500, 0 ) end function GiveMoneys() local players = getElementsByType ( "player" ) if ( #players ~= 0 ) then for i, v in ipairs ( players ) do if isPlayerInVehicle( v ) then local value = getPlayerSpeed ( v, 1 ) local speeds = math.ceil(value * 0.3) givePlayerMoney ( v, speeds ) end end end end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource() ), scriptStart ) you can modify it so it only checks the players that are in vehicles (insert them in a table when they enter a car and remove them when they leave), or you could make it clientside and then you wouldn't need the loop
-
local timer = {} function playerJoin () timer[source] = setTimer ( GiveMoneys, 500, 0, source ) setPlayerMoney( source, 25000 ) end function playerLeave () killTimer ( timer[source] ) timer[source] = nil end function GiveMoneys ( source ) if (isPlayerInVehicle( source ) == true) then local value = getPlayerSpeed ( source, 1 ) local speeds = math.ceil(value * 0.3) givePlayerMoney ( source, speeds ) end end addEventHandler ( "onPlayerJoin", getRootElement(), playerJoin ) addEventHandler ( "onPlayerQuit", getRootElement(), playerLeave ) you were using the same variable for every player on the server, say a player decides to quit right after another player joined, 'moneys' would be overwritten and it would kill the wrong timer EDIT: updated
-
Look closer, or tbh just read it properly. The while starts at 40 counting backwards in steps of i - 1, till i would equal less than 0 and it'd stop. I suppose he meant the baggage trailers
-
his name is mabako I'm afraid he said he won't release it
-
remember that these are just the client files so they won't work if you don't have the whole resource
-
in MTA there are 255 interiors (+0 with the game world), I don't know if some interiors share the same ID but maybe you're right and there are only about 5 and the rest is empty