Jump to content

IIYAMA

Moderators
  • Posts

    6,036
  • Joined

  • Last visited

  • Days Won

    206

Everything posted by IIYAMA

  1. I get the feeling this script is stolen....
  2. First of all always put a handler... when must this ... script be activated..... Second of all I have never used a return on my script. I always use else... I have no idea why use a return instead of using else. ........ why are you scripting so PRO and so not PRO....... You made that script or you just get it out of another script. I don't get it. BE MORE CLEAR
  3. well that means your export function does not work very well..... This does not work: local rank12 = exports.race:getPlayerRank( player_Wasted ) So put this script in race folder. Make sure you also change meta there. and use: local rank12 = getPlayerRank( player_Wasted ) Does this not work.... than the rank script of race does not work like that. ... Don't be stuppit to write the operators like that... -- in race folder function bastardDied( player_Wasted ) local rank = getPlayerRank( player_Wasted ) if(rank == 2) then local pointsToDie = 5 local playerPoints = tonumber">tonumber">tonumber ( loadPlayerData( player_Wasted, "points" ) ) savePlayerData( player_Wasted, "points", playerPoints + pointsToDie ) outputChatBox ( "#c0c0c0* #abcdef"..string.gsub(getPlayerName (player_Wasted),"#%x%x%x%x%x%x","").." #c0c0c0has finished this round in second place and got #abcdef5 #c0c0c0points!", root, 255, 255, 255, true ) elseif(rank == 3) then local pointsToDie = 3 local playerPoints = tonumber">tonumber ( loadPlayerData( player_Wasted, "points" ) ) savePlayerData( player_Wasted, "points", playerPoints + pointsToDie ) outputChatBox ( "#c0c0c0* #abcdef"..string.gsub(getPlayerName (player_Wasted),"#%x%x%x%x%x%x","").." #c0c0c0has finished this round in third place and got #abcdef3 #c0c0c0points!", root, 255, 255, 255, true ) elseif(rank > 3 and rank < 31) then local pointsToDie = 1 local playerPoints = tonumber">tonumber">tonumber ( loadPlayerData( player_Wasted, "points" ) ) savePlayerData( player_Wasted, "points", playerPoints - pointsToDie ) outputChatBox ( "#c0c0c0* #abcdefYou died and lost #abcdef1 #c0c0c0point!", player_wasted, 255, 255, 255, true ) end end addEventHandler("onPlayerWasted", getRootElement(), bastardDied)
  4. Why don't you check your script first? try this.
  5. First shutdown your server. Go to mta folder>server>mods>deathmatch open with notepath> mtaserver.conf Do ctrl + f and look for "fpslimit" or just find the word fpslimit. Between here: (normally 36) You better change this to max 45/50. If you go high there will be some strange bugs. (100 fps = you can't walk with m4, if you is able to make that 100 fps.) Then start your server again.
  6. I am stuppit or does he means how to find a damn word in a not path.... maybe you mean the command: ctrl + F ???? (windows) CMD + F (apple... if you have a apple like me I write sometimes my codes at school )
  7. well go look for color codes...
  8. You want people to become mods and smods, is it not?
  9. drake why use that operator? Why not use: elseif(rank > 3 and rank < 31) then -- and elseif(rank > 30 ) then
  10. I am blind? I already throwed it of my script... oh not lol.. This script should not need to work in the first place.
  11. oh shut the fuck off you didn't even mark the things you changed and also you let the script much to long. I don't get it how somebody from other side can trigger your script. end end addEventHandler("onPlayerWasted", getRootElement(), bastardDied) end end You also need to removed one end.> You removed inpairs
  12. that handler I don't know: I am not sure if an event can also activate the trigger. Because the event does not have target the script... Can't you put handler out of the function? If you trigger from other side client/server, can't you better use? addEvent ( "onPlayerWasted", true )
  13. IIYAMA

    Aim and walk

    ehm, strange bug. What is your local fps on the server? Because I know this bug: when you put your fps higher than 70, you wont be able to shoot and walk at the same time. Circa 45 is good.
  14. IIYAMA

    Water function

    ok, well I created them with the editor. But about the water. If your water is invisible, you can place with the editor fake water above your invisible water. and to finish it, you use dark blue conor markers at the bottom of the water. ~~~~~~~~~~~~~~~~~~ ~~W~~A~~T~~E~~R~~ ~~~~~~~~~~~~~~~~~~
  15. IIYAMA

    Hud Replacement

    So when you write that in the .txd it will automatic change your hud?
  16. IIYAMA

    Hud Replacement

    You can try to download a gta4 mod. Remove the other files. Only hold the .txd files. Remove the weapon/other useless image and make sure only the hud replacer is in the .txd files. Than you put your image in there..... It is not so easy as it looks like... It is your choose.
  17. ok, that sounds interresting "paid scripter". Only mta scripts or also php, flash actionscript < this looks like it a little (for websites)?
  18. Solidsnake are you doing this all day? (I mean helping people with scripting) No school or work
  19. IIYAMA

    Water function

    Well the strang thing is why they don't allow it.. but karlis +1
  20. IIYAMA

    Water function

    yes, interior is not the right place to create water..... Also vehicles will be invisible... just gta bug.... Maybe you can try to reset water color... maybe it does work. Let me know https://wiki.multitheftauto.com/wiki/SetWaterColor (ask a admin to make a server script for you, I am to lazy ) Also: Create water does not work to far from the homelands... (and pickups will be invisible to ) I hate that f.u.c.k.i.n.g bugs... but nothing you can do about it... I have always trouble with that, I make maps away from the homelands, so you don't have to load normal gta objects, but ofcourse the bugs.
  21. Make lots of triggers instead of onclientrender? Like: onPlayerSpawn(all), onPlayerWasted(all), reloadgun(ammo/weapon_img), onPedDamage/onPlayerDamage(armor/health), onPlayerWeaponSwitch (ammo/weapon_img), onClientPlayerWeaponFire(ammo/weapon_img) (I don't know if they are all true... it is just a sample of it) Would that be better against lagg or does it make more lagg? and what about the names between >() sample: onPlayerWeaponSwitch > (weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement)
×
×
  • Create New...