GamerDeMTA
Members-
Posts
559 -
Joined
-
Last visited
Everything posted by GamerDeMTA
-
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.
-
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?
-
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?
-
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?
-
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
-
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 )
-
then how to do that it gives u 1000? Dual weapon
-
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?
-
It says error in the getElementType
-
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"
-
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?
-
It doesn't work yet. This is what debugscript 3 said me: Bad argument @ 'getElementType' [Expected element at argument 1, got number '28']
-
No, it doesn't work. It says this: WARNING: Bad argument @ ' getPedStat' ERROR: attempt to perform arithmetic on global 'current' (a nil value)
-
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.
-
@MADEXX It says attempt to perform arithmetic in the line 9. and it says is bad the line 8 too
-
it's not possible?
-
Yes now it works thanks. Oh and how to give the player + 100 stats per Kill?
-
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
-
function equi ( ) local p = getPedStat ( player, 75 ) setPedStat ( player, 75, p + 500 ) end addEventHandler("onPlayerJoin", root, equi)
-
function ( ) local eop = getPedStat ( player, 75 ) setPedStat ( player, 75, eop + 500 ) end addEventHandler("onPlayerSpawn", root, )
-
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?
-
u know where to download zombies_scoreboard or can u send me?
-
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?
-
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.
-
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)
