-
Posts
216 -
Joined
-
Last visited
Everything posted by Mega9
-
Urednik je više pojam vezan uz osobu koja se bavi uredništvom, odnosno uređuje nešto dok uređivač je opći pojam koji se koristi u više različitih svrha. Edit: Po meni je bolje da su slova normalna bez obzira što su umanjena. Ne pravi neku vizualnu razliku veliku.
-
https://wiki.multitheftauto.com/wiki/Se ... tagShowing
-
This forum is actually to help new scripters like you. So no, anybody may ask for help here as long as the script is not stolen or leaked.
-
You are using two same command handlers for two different functions. And there is no need in getting player money (Line 13).
-
Exactly, because you're using SERVER side functions/events in CLIENT side. Re-read the wiki to find a difference between those two.
-
You still haven't done what Castillo pointed out for you. Your code has many errors and functions which don't make sense at all. For example: You're using onResourceStart (which is server-side) in client-side script, using onClientClick instead of onClientGUIClick etc. Show us that you actually made all of this by fixing some of said things so we could help you.
-
exports.scoreboard:addScoreboardColumn('Level') addEventHandler("onPlayerSpawn",root, function() local account = getPlayerAccount(source) if isGuestAccount (account) then return end local zombiekills = getAccountData(account,"Zombie kills") if (zombiekills >= 1) and (zombiekills <= 99) then setElementData ( source, "Level", "Level 1" ) elseif (zombiekills >= 100) and (zombiekills <= 249) then setElementData ( source, "Level", "Level 2" ) elseif (zombiekills >= 250) and (zombiekills <= 499) then setElementData ( source, "Level", "Level 3" ) elseif (zombiekills >= 500) and (zombiekills <= 999) then setElementData ( source, "Level", "Level 4" ) elseif (zombiekills >= 1000) and (zombiekills <= 1499) then setElementData ( source, "Level", "Level 5" ) elseif (zombiekills >= 1500) and (zombiekills <= 2249) then setElementData ( source, "Level", "Level 6" ) elseif (zombiekills >= 2250) and (zombiekills <= 3499) then setElementData ( source, "Level", "Level 7" ) elseif (zombiekills >= 3500) and (zombiekills <= 4999) then setElementData ( source, "Level", "Level 8" ) elseif (zombiekills >= 5000) and (zombiekills <= 7999) then setElementData ( source, "Level", "Level 9" ) elseif (zombiekills >= 8000) and (zombiekills <= 12999) then setElementData ( source, "Level", "Level 10" ) elseif (zombiekills >= 13000) and (zombiekills <= 19999) then setElementData ( source, "Level", "Level 11" ) elseif (zombiekills >= 20000) and (zombiekills <= 29999) then setElementData ( source, "Level", "Level 12" ) elseif (zombiekills >= 30000) and (zombiekills <= 39999) then setElementData ( source, "Level", "Level 13" ) elseif (zombiekills >= 40000) and (zombiekills <= 49999) then setElementData ( source, "Level", "Level 14" ) elseif (zombiekills >= 50000) and (zombiekills <= 59999) then setElementData ( source, "Level", "Level 15" ) elseif (zombiekills >= 60000) and (zombiekills <= 69999) then setElementData ( source, "Level", "Level 16" ) elseif (zombiekills >= 70000) and (zombiekills <= 79999) then setElementData ( source, "Level", "Level 17" ) elseif (zombiekills >= 80000) and (zombiekills <= 79999) then setElementData ( source, "Level", "Level 18" ) elseif (zombiekills >= 80000) and (zombiekills <= 89999) then setElementData ( source, "Level", "Level 19" ) elseif (zombiekills >= 90000) and (zombiekills <= 99999) then setElementData ( source, "Level", "Level 20" ) elseif (zombiekills >= 100000) and (zombiekills <= 999999999) then setElementData ( source, "Level", "Level Dios" ) end end ) This should work.
-
You are supposed to use setElementData in order to show levels in scoreboard.
-
addEventHandler ("onPlayerQuit", root, function () local playerAccount = getPlayerAccount (source) local playerMoney = getPlayerMoney (source) setAccountData etc. end ) Just a basic start to give you an idea what to do. Save player's money to account data and then retrieve the account data onPlayerLogin.
-
MTA Paradise is a free roleplay gamemode.
-
I can't do that sorry. The script works fine, there's something more you did to break it.
-
Alright, have you replaced the original code from "altern8_play_respawn_s.lua" with one I posted? If yes, there shouldn't be any problems, your other resources might be causing troubles or there's something you haven't done right.
-
I don't know what your problem really is. I tested it myself and everything seems to work just fine. Can you explain your problem thoroughly, what do you mean by 'it's not showing on your maps'. Could you also post your meta.xml please.
-
Just replace your old one (1st script you posted) with my version along with the 2nd script you posted.
-
local uTimers = { } local hospitalSpawns = { { 2027.77, -1420.52, 17.1, }, { 1180.85, -1325.57, 14.0, }, { 1244.437, 331.2261, 20.0, }, { -2199.719, -2308.075, 31.0, }, { -2670.285, 616.4364, 14.6, }, { -316.3832, 1056.045, 20.0, }, { -1514.823, 2527.119, 56.0, }, { 1578.446, 1770.682, 11.0, } } function respawn( player, skin ) if not isElement( player ) then return end local myX, myY, myZ = getElementPosition( player ) local mySp, myDis = 1, 99999 for i, sp in ipairs( hospitalSpawns ) do local dis = getDistanceBetweenPoints3D( sp[ 1 ], sp[ 2 ], sp[ 3 ], myX, myY, myZ ) if dis < myDis then myDis = dis mySp = i end end repeat until spawnPlayer ( player, hospitalSpawns[ mySp ][ 1 ], hospitalSpawns[ mySp ][ 2 ], hospitalSpawns[ mySp ][ 3 ], 0, skin ) fadeCamera( player, true ) setCameraTarget( player, player ) showChat( player, true ) end addEventHandler( "onPlayerWasted", root, function( ) uTimers[ source ] = setTimer( respawn,1000,1,source,getElementModel( source ) ) end ) addEventHandler( 'onPlayerQuit',root, function( ) uTimers[ source ] = nil end ) addEventHandler( "onResourceStart", resourceRoot, function( ) resetMapInfo( ) for i,player in pairs( getElementsByType 'player' ) do respawn( player ) end end ) --End Of script, Adding More Later. --Tarek632 Line 28, there was a missing "skin" argument that's why you get CJ's skin
-
MTA Community does not provide support for leaked gamemodes and/or scripts.
-
Easiest way: 1.) Get bone_attach resource 2.) Find briefcase object ID 3.) Attach the briefcase to a player using bone_attach exports
-
Business as usual you say. Just because he has a CIT-like interface, that doesn't make his work less worth than any other's and I just compared it to Samsung <=> Apple debate since it was already mentioned above. Imagine that he took the look of the phone, but made it's software different? That's what I actually meant with the processor example. Don't judge the book by it's cover.
-
votemanager_c.lua lines from 19 to 78 - edit these however you wish
-
Yet they still use Samsung processors. Irony isn't it? Resource is quite nice nevertheless how it looks. Judging it by the way it looks is very primitive. There are some urgent issues to be solved as its easy to cause server lag by spamming the buttons.
-
If he made the whole code then he knows what he is doing, so its not such a big deal but mkay.
