-
Posts
503 -
Joined
-
Last visited
Everything posted by TorNix~|nR
-
@Ahmed Ly, thank you but, it's always unable to use even when the boss is not activated. You can not use this now while boss is activated.
-
The problem is the code doesn't detect the event, I already added a outputChatBox, and it doesn't appear. I do not know how to fix it
-
There is no debug problems, I just want when the boss event is activated, this command turn off, any help please?
-
@Xero~, thanks it's working But when a player leave the base, and wait for 30 seconds, all the players must wait 30 seconds too, how to make it only for the player?
-
Guys, help, I do not know how to do it, it doesn't get the event. help? function blablabla (source, command) local players = getPlayerTeam(source) local team = getTeamName(players) if team == "team" then setPedStat(source, 69, 999) setPedStat(source, 70, 999) setPedStat(source, 71, 999) setPedStat(source, 72, 999) setPedStat(source, 73, 999) setPedStat(source, 74, 999) setPedStat(source, 75, 999) setPedStat(source, 76, 999) setPedStat(source, 77, 999) setPedStat(source, 78, 999) setPedStat(source, 79, 999) outputChatBox("Done.", source) local boss = getElementData(source,'boss') if boss == true then outputChatBox("You can not use this now while boss is activated.", source) end end end addCommandHandler("team", blablabla)
-
Hello guys, I want to make a timer for this like the player can not use it, only after 30 seconds, help please! marker = createMarker(1.00, 1.00, 1.00, "cylinder", 0, 0, 0, 0, 0) function teleport(player) local x, y, z = getElementPosition(player) local rotZ = getElementRotation ( player ) local aa = {} if (source == marker and getElementType(player) == "player") then setElementPosition(player, 1.00, 1.00, 1.00) setElementFrozen(player, false) setTimer(setElementFrozen, 1000, 1, player, false) end end addEventHandler("onMarkerHit", root, teleport)
-
What do you mean with didn't open?
- 9 replies
-
- scoreboard
- flag
-
(and 2 more)
Tagged with:
-
-- server-side function showcountry() local flag = exports.admin:getPlayerCountry ( source ) if flag then setElementData(source,"Country",":admin/client/images/flags/"..flag..".png") else flag = "N/A" end end addEventHandler("onPlayerJoin",getRootElement(),showcountry) Add this on scoreboard client-side elseif column.name == "Country" then dxDrawImage( topX+theX, y+s(1), 16, 11, content, 0, 0, 0, cWhite, drawOverGUI ) tell me if there is a problem.
- 9 replies
-
- 1
-
-
- scoreboard
- flag
-
(and 2 more)
Tagged with:
-
Done! I found the solution Thank you for anyone needs help, just see this topic:
-
Guys, help me, the random weapons are not working. giveWeapon(target, math.random(34,37,38,9), 90000, true)
-
It's not working, but I need it for the event script, like I told you
-
Hello guys, I have my event used by slothbot, it's working fine, but I want to change the postions to randomly I tried many attemps, and I failed, can you help please? this is the normal code local bossDeady = { {1952.16, 707.50, 11.82, 90, 97, 38, 5000, 20000, 20000, "NAME"}, } local x, y, z, rot, skin, weapon, health, money, _, name, _, ped = unpack(bossDeady[ID]) bossDeady[ID][12] = exports["slothbot"]:spawnBot(x, y, z+1, rot, skin, 0, 0, nil, weapon, "hunting") but I want to use it random like this local posTable = { {-1341.54, -149.02, 14.14}, {-1586.54, -214.85, 14.14}, {-1478.24, 12.55, 14.36} } local x, y, z = unpack(posTable[math.random(#posTable)]) but I do not know how to do it with normal code, help please?
-
Done! guys I fixed it, and it was so easy xD, I just use startResource and stopResource, while the boss is activated Thanks for everyone!
-
@ShayF, Thank you, but I just want to stop spawning zombies while the boss is activated and when the boss died, zombies come back, like that..
-
I will spend what I can Thank you.
-
I think I should not use true I should use, like this local boss = getElementData(source, "boss") if boss then is it? Also I found this little code (example) on my client-side, so I think it's like that addEventHandler("onClientPedDamage", root, function (attacker, weapon) local boss = getElementData(source, "boss") if boss and antiWeapon[weapon] then cancelEvent() end end) but the problem, I do not know how to do it..
-
I do not found the solution I try at least 100 times, even I use outputChatBox, and it didn't show I just want when the boss is activated, the zombies disappear.
-
function isBossActivated(bb) local ee = getElementData(bb,"zombie") if getElementData(bb,"boss") ~= true then if isElement(ee) then return false end end end it's not working?
-
The dream
-
Hello guys, I have a event that appears sometimes, is a boss, and it's element is "boss" I want when the element is activated, the zombies doesn't appear, and when it's disabled the zombies appear again, help? local aa = getElementData("zombie") if getElementData("boss") ~= true then destroyElement(aa) How can I do it?
-
What should I do to fix it?
-
Hello guys, I just got this problem, and I've never seen before on my server, this script was working ( marker style ) and suddenly this comes on debugscript 14: Bad argument @ 'dxSetShaderValue' [Expected material at arugment 1, got boolean] 15: Bad argument @ 'engineRemoveShaderFromWorldTexture' [Expected material at argument 1, got boolean] 4: [D3DXCreateEffectFromFile failed (8007000e)[Loaded 'nameresource'/file/shwaeki.fx (135 bytes)]] @ 'dxCreateShader' [file/shwaeki.dx] 6: Bad argument @ 'dxSetShaderValue' [Expected material at argument 1, got boolean] 7: Bad argument @ 'engineApplyShaderToWorldTexture' [Expected material at argument 1, got boolean] I don't know why? any help? I can post the script if you want.
-
@IIYAMA, I already make so many xD, I will make it, and if there some bugs I'll notice but I want when the player downloading and when it finish I use triggerEvent onClientDownloadFinish when the player finish .downloading it backs to normal hospital system, the example you gave me is for all time.