Resto
Members-
Posts
155 -
Joined
-
Last visited
Everything posted by Resto
-
I used if isElement(arg2) and warning is the same.
-
Try this: -- Check here if arg2 exist then .... local bleeding = getElementData(arg2,"bleeding") or 0 local bandage = getElementData(localPlayer,"Bandage") or 0 if bleeding > 0 and bandage >= 1 then -- put your code here end This? if isElement(arg2) then -- or if getElementType(arg2) == "player" then ??? local bleeding = getElementData(arg2,"bleeding") or 0 local bandage = getElementData(localPlayer,"Bandage") or 0 if bleeding > 0 and bandage >= 1 then -- put your code here end end and localPlayer / getLocalPlayer() is the same or?
-
Hi, I don't know where is problem.. any can help me? arg2 is element (car, player etc..) Warning: WARNING: Bad argument @ 'getElementData' [Expected element at argument 1, got nil] if (getElementData(arg2,"bleeding") or 0) > 0 and (getElementData(getLocalPlayer(),"Bandage") or 0) >= 1 then
-
Looking the posts above, the others things are from Russian tutorials, who gave you the right to add them and make a resource and sell them? They are created by me and that someone says they are created according to the Russian tutorials so the question you wrote it is good idiot. 1 - I do not know even where those Russian tutorials 2 - If you do not know the truth so you do not write anything better. 3 - When you write something it is the Russian tutorials that give evidence
-
If you do not see that I already wrote that dayz not pay so you can be blind .. well the other things I have done so myself .. I do not know what you write for s.h.i.t. And prerment ban should get such people here who can create posts that they have as much.
-
Update: Added new ScoreBoard for DayZ.
-
Send me PM with your skype. I have.
-
So dayz not but other things are mine.
-
Really? do you think that I will take something from Russian s.h.i.t tutorials?
-
My code work perfect and your code too work but outputChatBox will 5x. But thanks my problem is solved.
-
But why, What do you want to achive? Because players what to 0 points can be abused my script and therefore we want to have protection for 1-5. And this should work? local points = tonumber(getElementData(player, "points")) if (points == 1) or (points == 2) or (points == 3) or (points == 4) or (points == 5) then
-
Not that I do not want that the code can do what I have just me who points 1-5 others can not
-
hi can anyone get me example how i can get number 1 to 5 only? i mean for w = 1,5 do but when i use this my outputchatbox is 5x i need to use here: local points = getElementData(player, "points") if (tostring(points) < "5") then
-
Nope, you have to pass an value inside the brackets (in this case the weapon id). othertable[ getPedWeapon(player) ] thanks work.
-
really? a table can be used to any thing, not only for skins. othertable = { [24] = "Eagle", [26] = "sawn" } take a look at this (tables section). and where i must use "othertable" ? othertable[] ?
-
i mean: names = { [31] = "1", [29] = "2", [28] = "3" }
-
To use weapons? To get weapons names? or what 2.
