Jump to content

Evil-Cod3r

Members
  • Posts

    370
  • Joined

  • Last visited

Everything posted by Evil-Cod3r

  1. Evil-Cod3r

    Help

    ---serverSide addEvent('swaptoggle',true) addEventHandler("swaptoggle", getRootElement(), function(thePlayer, teamswap) aretheyswapped = teamswap end) --clientside local spectators = {} local getPlayerSpectatee = {} function teamstealthgamestart() killmessageRes = getResourceFromName"killmessages" call(getResourceFromName("scoreboard"), "addScoreboardColumn", "Score") call(getResourceFromName("scoreboard"), "addScoreboardColumn", "kills") call(getResourceFromName("scoreboard"), "addScoreboardColumn", "deaths") playingaround = 0 redwinsdisplay = textCreateDisplay() local redtext = textCreateTextItem ( "RED Team Wins the Match!", 0.5, 0.5, "low", 255, 0, 0, 255, 3, "center", "center" ) textDisplayAddText ( redwinsdisplay, redtext ) bluewinsdisplay = textCreateDisplay() local bluetext = textCreateTextItem ( "BLUE Team Wins the Match!", 0.5, 0.5, "low", 0, 0, 255, 255, 3, "center", "center" ) textDisplayAddText ( bluewinsdisplay, bluetext ) tiegamedisplay = textCreateDisplay() local tietext = textCreateTextItem ( "The Match was a Tie!", 0.5, 0.5, "low", 255, 255, 255, 255, 3, "center", "center" ) textDisplayAddText ( tiegamedisplay, tietext ) waitDisplay = textCreateDisplay() local waittext = textCreateTextItem ( "Wait for next round to spawn.", 0.5, 0.9, "low", 255, 255, 255, 255, 1.6, "center", "center" ) textDisplayAddText ( waitDisplay, waittext ) team1 = createTeam("RED",255,0,0) team2 = createTeam("BLUE",0,0,255) teamprotect = get("stealth.teamdamage") if teamprotect == 1 then setTeamFriendlyFire( team1, false ) setTeamFriendlyFire( team2, false ) elseif teamprotect == 0 then setTeamFriendlyFire( team1, true ) setTeamFriendlyFire( team2, true ) end setElementData ( team1, "Score", 0 ) setElementData ( team2, "Score", 0 ) teamswap = 0 local players = getElementsByType ( "player" ) for k,v in ipairs(players) do killPed(v) fadeCamera(v,true) triggerClientEvent('swaptoggle' v, teamswap) setElementData ( v, "kills", 0 ) setElementData ( v, "deaths", 0 ) setPlayerNametagShowing ( v, false ) spectators[v] = true bindKey ( v, "F3", "down", selectTeamKey ) end --Enable laser sight setElementData(getRootElement(),"lasersight",get("stealth.lasersight")) end addEventHandler( "onGamemodeStart", resourceRoot, teamstealthgamestart )
  2. https://community.multitheftauto.com/index.php?p= ... ls&id=3921 Haydra Skin Skin Mode https://community.multitheftauto.com/index.php?p= ... ls&id=3920
  3. what about the uplode manger check if there any txd and dff files msg to the Uploder txd and dff files are not alloweded !
  4. small edit to your script bindKey('F7','down', function() if isPedInVehicle(localPlayer) then local vehicle = getPedOccupiedVehicle(localPlayer) if vehicle then fixVehicle(vehicle) outputChatBox("Your Vehicle Has Been Fixed",255,255,0) else outputChatBox("You Are Not in Vehicle",255,0,0) end end end)
  5. !::Show Money and Give Money Gui :: :: Futures :: 1 - Add Sound when he Press Yes images ! 2- Add Give Money Button ! 3- Fixed Some Bugs on the past script ! 4- Added Anti- Spam Command v2.0 ! 5- Added Msg To ChatBox say "Press F3 To Show The Gui" ! 6- Fixed Cursor show When gui hide ! Thanx to Kenix and Tapl For Help $: ::: Dev-PoinT :: Please Rate 5/5 https://community.multitheftauto.com/index.php?p= ... ls&id=3912 !:: سكربت اظهار واعطاء الفلوس:: :: الاضافات :: 1- تم وضع صوت اذا اظهرت فلوسك لجميع الاعبين ! 2- تم وضع زر اعطاء فلوس عند الحاجه كل 30 ثانيه ! 3- تم اصلاح اخطاء النسخه اللي فاتت ! 4- تم وضع مضاد الفلود كل 30 ثانيه تستخدم الامر فقط ! 5- تم وضع رسالة في الشات كيفية فتح السكربت ! 6- تم اصلاح ظهور السهم عند اختفاء النافذه شكرآ للي ساعدني :: يآسر :: الرجاء التقييم 5/5 https://community.multitheftauto.com/index.php?p= ... ls&id=3912
  6. yes i fixed it https://community.multitheftauto.com/index.php?p= ... ls&id=3912
  7. function fix () if isPedInVehicle( localPlayer ) then local uVehicle = getPedOccupiedVehicle( localPlayer ) if uVehicle then fixVehicle( uVehicle ) end end end addEventHandler ( "onClientPlayerSpawn", getLocalPlayer(), fix) bindKey ( "F7", "down", fix) Updated !!
  8. Fixed By My Slef Thanx All For Help Me ! Topic Closed !
  9. Thanx Tapl Work But what was the problem ??
  10. both of the events say cilen triggerd server side event but event is not added to server side what is the problem so i can fix it on the later scripts ? addEvent("giveMoney", true ) addEventHandler("giveMoney", root, function() local reward = math.random(10,100) givePlayerMoney(source,reward) outputChatBox(getPlayerName(source)"Money System Has Give Him".. reward.."$", root,255,255,0) end) addEvent("showMoney", true ) addEventHandler("showMoney", root, function() outputChatBox(getPlayerName(source).." Has Money is $"..getPlayerMoney(source).."!",root,255,255,0) else outputChatBox("You Have To Wait 30 sec for Using this Command again !",source,255,0,0) end)
  11. some one help me to understand my erros ?
  12. Kenix God i love You Man Love You to the end i just fixed the server side by My Self still the client side i try
  13. what about this ?? local spam = false local Money = getPlayerMoney(source) local reward = math.random(10,100) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(470,264,608,378,"Money_System By Dev-PoinT",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Image[1] = guiCreateStaticImage(219,20,116,124,"images/money.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(37,238,129,91,"images/yes.png",false,GUIEditor_Window[1]) GUIEditor_Image[3] = guiCreateStaticImage(421,247,129,79,"images/no.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(41,339,196,18,"Yes To Show Your Money",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,0) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Label[2] = guiCreateLabel(410,340,158,15,"No To Hide The Window",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],255,0,0) guiSetFont(GUIEditor_Label[2],"clear-normal") GUIEditor_Button[1] = guiCreateButton(195,174,173,36,"Give Me Money",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"clear-normal") addEventHandler('onClientGUIClick',root, function() if source == GUIEditor_Image[2] then if spam then outputChatBox("You have to wait 30 sec",255,0,0) return end local sound = playSound("sounds/cash.mp3") setSoundVolume(sound, 0.5) triggerServerEvent ("showMoney", localPlayer) spam = true setTimer(function() spam = false end,30000,1) elseif source == GUIEditor_Image[3] then guiSetVisible(GUIEditor_Window[1],false) end end ) addEventHandler('onClientGUIClick',root, function() if source == GUIEditor_Button[1] then givePlayerMoney(source,reward) end end )
  14. Hi all i just run my brain and Make this but is it correct ? local spam = false local Money = getPlayerMoney(source) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Image = {} GUIEditor_Window[1] = guiCreateWindow(470,264,608,378,"Money_System By Dev-PoinT",false) guiWindowSetMovable(GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Image[1] = guiCreateStaticImage(219,20,116,124,"images/money.png",false,GUIEditor_Window[1]) GUIEditor_Image[2] = guiCreateStaticImage(37,238,129,91,"images/yes.png",false,GUIEditor_Window[1]) GUIEditor_Image[3] = guiCreateStaticImage(421,247,129,79,"images/no.png",false,GUIEditor_Window[1]) GUIEditor_Label[1] = guiCreateLabel(41,339,196,18,"Yes To Show Your Money",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,0) guiSetFont(GUIEditor_Label[1],"clear-normal") GUIEditor_Label[2] = guiCreateLabel(410,340,158,15,"No To Hide The Window",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],255,0,0) guiSetFont(GUIEditor_Label[2],"clear-normal") GUIEditor_Button[1] = guiCreateButton(195,174,173,36,"Give Me Money",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"clear-normal") addEventHandler('onClientGUIClick',root, function() if source == GUIEditor_Image[2] then if spam then outputChatBox("You have to wait 30 sec",255,0,0) return end local sound = playSound("sounds/cash.mp3") setSoundVolume(sound, 0.5) triggerServerEvent ("showMoney", localPlayer) spam = true setTimer(function() spam = false end,30000,1) elseif source == GUIEditor_Image[3] then guiSetVisible(GUIEditor_Window[1],false) end end )
  15. Ok Thanx all for helpin me iam sorry to make you tired with me sorry Close :Topic:
  16. last thing this what i mean ---serverSide addEvent("onPlayerHealthChanged",true) addEventHandler("onPlayerHealthChanged",root, function (old, new) outputChatBox(getPlayerName(source) .. "Has Set(getPlayerName(source) health from ".. old .." to ".. new ..",root,255,0,0) end ) ---clientSide local oldHealth = getElementHealth(localPlayer) function checkPlayerHealth() local currentHealth = getElementHealth(localPlayer) if (currentHealth ~= oldHealth) then if (oldHealth < currentHealth) then triggerServerEvent("onPlayerHealthChanged",localPlayer,oldHealth,currentHealth) end oldHealth = currentHealth end end addEventHandler("onClientPreRender",root,checkPlayerHealth)
  17. yes yes yes yes yes thank god Man ! you have made it but what if the admin give another player health dos it show on the chat ?? local name = getPlayerName(admin) local him = getPlayerName(source) local value = getElementHealth() function show () if (admin give player health and the Player got the health ) then outputChatBox(name.. "Has Give .. him .. value .. of Health") end addEventHandler ( "onResourceStart", getRootElement(), show)
  18. Solidsnake14 vs Evil-Cod3r we Play in my server you have hit me with m-4 -50 of my health i set my health +50 form the admin panel i want output a msg called ("evil-Cod3r.. Has Set His Health 50 He Cheat on the Map !!!") did you get it now? i wnat you to see the msg if i give my self health or not becuse some players cheat on there server ! i want script Anti-Health Cheat !
  19. lool i sould learn english i told you if i team 1 and you team 2 we play in my server Solidsnake14 vs Evil i give my self Health ( i cheat ) i want to outputMsg ("evil Has Set His health to ... ") i want all players see it or i give you health ("evil has give Solidsnake14 health")
  20. Bad argument @ 'getPlayerAccount'[Expected element at arguemnt 1 got resource-data] Bad argument @ 'getAccountName'[Expected element at arguemnt 1 got boolean] attempt to coucatenate local 'accountName' a boolean value function what (thePlayer, who, health) local accountName = getAccountName(getPlayerAccount(thePlayer)) if ( isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) ) then local health = tonumber(health) local player = getPlayerFromName(who) local thePlayer = (source) if (health and player) then outputChatBox(getPlayerName(thePlayer) .." Has given ".. getPlayerName(player) .." ".. health .. getElementHealth(source)"% of health.",root,255,255,0) end end end addEventHandler ( "onResourceStart", getRootElement(), what )
  21. not command to give health !! i want get the like this but with out a commad function what (thePlayer, who, health) local accountName = getAccountName(getPlayerAccount(thePlayer)) if ( isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) ) then local health = tonumber(health) local player = getPlayerFromName(who) local thePlayer = (source) if (health and player) then outputChatBox(getPlayerName(thePlayer) .." Has given ".. getPlayerName(player) .." ".. health .. getElementHealth(source)"% of health.",root,255,255,0) end addEventHandler ( "onResourceStart", getRootElement(), what )
  22. its say expected: 1 name near (' ? function (thePlayer, who, health) local accountName = getAccountName(getPlayerAccount(thePlayer)) if ( isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) ) then local health = tonumber(health) local player = getPlayerFromName(who) if (health and player) then outputChatBox(getPlayerName(thePlayer) .." Has given ".. getPlayerName(player) .." ".. health .."% of health.",root,255,255,0) end end end )
  23. This what i mean function (thePlayer, who, health) local accountName = getAccountName(getPlayerAccount(thePlayer)) if ( isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) ) then local health = tonumber(health) local player = getPlayerFromName(who) if (health and player) then outputChatBox(getPlayerName(thePlayer) .." Has given ".. getPlayerName(player) .." ".. health .."% of health.",root,255,255,0) end end end )
×
×
  • Create New...