Jump to content

GamerDeMTA

Members
  • Posts

    559
  • Joined

  • Last visited

Everything posted by GamerDeMTA

  1. p = createPickup ( 2017.4038085938,-1431.1442871094,13.543635368347, 0, 1000, 5000) function pp ( player ) setElementHealth ( player, 1000) end addEventHandler ("onPickupHit", p, pp) PS: I also tried without the ( player) in function.
  2. isn't that?? Oh and now it works, but i need something when I die and spawn again I havent the Stats How to save them for when u spawn?
  3. thanks. oh u know the "symbol" for make a thing when it's less than? I think it's this am I wrong? if ... =< Is it?
  4. function equi ( ) setPedStat ( source, 75, 0 ) end addEventHandler ( "onPlayerJoin", root, equi ) addEvent ( "onZombieWasted",true ) addEventHandler ( "onZombieWasted", root, function ( killer ) if ( isElement ( killer ) and getElementType ( killer ) == "player" ) then local current = getPedStat ( killer, 75 ) setPedStat ( killer, 75, ( current + 999 ) ) end end ) this will work?
  5. But I want to do that when you kill a zombie you get +999 in your weapon. so i put current + 999 but it didnt work i havent double Uzi
  6. It didn't work addEvent ( "onZombieWasted",true ) addEventHandler ( "onZombieWasted", root, function ( killer ) if ( isElement ( killer ) and getElementType ( killer ) == "player" ) then local current = getPedStat ( killer, 75 ) setPedStat ( killer, 75, ( current + 999 ) ) end end )
  7. then how to do that it gives u 1000? Dual weapon
  8. Thanks but it doesn't work I think. Or is it my fault? function equi ( ) setPedStat ( source, 75, 500 ) end addEventHandler ( "onPlayerJoin", root, equi ) addEvent ( "onZombieWasted",true ) addEventHandler ( "onZombieWasted", root, function ( killer ) if ( isElement ( killer ) and getElementType ( killer ) == "player" ) then local current = getPedStat ( killer, 75 ) setPedStat ( killer, 75, ( current + 1000 ) ) end end ) I put +1000 for get double weapon in Uzi But I haven't double Uzi. Is it wrong?
  9. It says error in the getElementType
  10. It doesn't work. addEventHandler ( "onZombieWasted", root, function ( _, killer ) if ( killer and getElementType ( killer ) == "player" ) then local current = getPedStat ( killer, 75 ) setPedStat ( killer, 75, ( current + 100 ) ) end end ) addEvent ("onZombieWasted"
  11. My script has to work, copy it exactly like I posted. @V.Krumins: That's the same thing as my script. Thanks it works! Oh and u know it how to do it also when u kill zombies?
  12. It doesn't work yet. This is what debugscript 3 said me: Bad argument @ 'getElementType' [Expected element at argument 1, got number '28']
  13. No, it doesn't work. It says this: WARNING: Bad argument @ ' getPedStat' ERROR: attempt to perform arithmetic on global 'current' (a nil value)
  14. function equi() setPedStat(source, 75, 500) end addEventHandler("onPlayerJoin", root, equi) addEventHandler ( "onPlayerWasted", root, function ( _, source ) if ( source ) then local current = getPedStat ( source, 75 ) local new = current + 100 setPedStat ( source, 75, new ) else return end end ) try this. It doesn't work yet it gives error in the line of "local current" and "local new". Local new error is arithmetic.
  15. @MADEXX It says attempt to perform arithmetic in the line 9. and it says is bad the line 8 too
  16. Yes now it works thanks. Oh and how to give the player + 100 stats per Kill?
  17. It doesn't work yet. the debugscript gave "arithmetic attempt" or something like that with the old script. In line 3. Now , with source, it doesn't work and it dont give Debugscript 3
  18. function equi ( ) local p = getPedStat ( player, 75 ) setPedStat ( player, 75, p + 500 ) end addEventHandler("onPlayerJoin", root, equi)
  19. function ( ) local eop = getPedStat ( player, 75 ) setPedStat ( player, 75, eop + 500 ) end addEventHandler("onPlayerSpawn", root, )
  20. No I think no. I want to do that, when I kill a player, it gives me + 5 of "damage" in my Uzi weapon. So I need to get the current property of damage + 5 no?
  21. u know where to download zombies_scoreboard or can u send me?
  22. Oh thanks but I haven't zombies_scoreboard in "zombies", I downloaded it from the Community and there wasn't that script. How to get it?
  23. Hey I want to do that there's a AREA in the Radar and F11 which is with color RED and that you can't enter! That area would be LV! How to? PS: If you enter, you die.
  24. Hey, I need help. I want to do this when I killed 100 Zombies. How to do it Only when I killl 100 Zombies? outputChatBox("You Killed 100zombies!!!", getLocalPlayer ( ), 255, 255, 255, true)
×
×
  • Create New...