Jump to content

E-mail

Members
  • Posts

    100
  • Joined

  • Last visited

Everything posted by E-mail

  1. Try This function grenadekill ( killer, weapon, bodypart ) if ( weapon == 16 ) then --if the weapon used was the grenade local sound = playSound("Perfect.mp3") setSoundVolume(sound, 0.5) -- set the sound volume to 50% end addEventHandler("onClientPlayerWasted",getLocalPlayer(),grenadekill) and meta.xml "youName" type="script" version="1.0" />
  2. Hi i have Made a Health Pickup how to add if player take the pickup PlayerName... Have Take a Health! my code outputChatBox("Health_Pickup|By[xiGooglex]"),255,255,0 function createDeathPickup ( totalammo, killer, killerweapon, bodypart ) local x, y, z = getElementPosition ( source ) local health = createPickup ( x, y, z, 0, 40) addEventHandler("onPickupHit", health, givePlayerHealth) end addEventHandler ( "onPlayerWasted", getRootElement(), createDeathPickup ) function givePlayerHealth(thePlayer) setElementHealth(thePlayer,tonumber(getElementHealth(thePlayer))+tonumber(getPickupAmount(source))) destroyElement(source) end
  3. Hi all i made this script by help JR10 and SoldSnake14 if player Kill the enamy get weapons ----39 with 2-ammo and outputChatBox + Siren if player get the weapon see outputChatBox("War_System|x[Dev-PoinT]x!",255,255,0) function xxx (ammo, killer, killerweapon, bodypart ) if (killer) and (killer ~= source ) then giveWeapon ( killer, 39, 2, true ) local sound = playSound("sounds/PSiren.mp3") setSoundVolume(sound, 0.5) end outputChatBox(getPlayerName(killer) .." has Now a Special Weapon, watch out!", getRootElement(), 255, 255, 0) end end addEventHandler ("onPlayerWasted",getRootElement() , xxx)
  4. No JR10 iam not Like MoJrm he is noob in script iam not i just forget some function i know it onClinetPlayrSpawn but any way Thx For you help
  5. THX JR10 swear to God you are the best assistant in the Forum
  6. JR10 i start the script there is a bug the State after respawn still Dead Not alive did i use setupdateTimer?
  7. /debugscript say filed to call 'scorbord' addColumn' [string"?"]
  8. Hi all i have made a script Player Stats Please i need some Fix For My Script addEventHandler ( "onClientResourceStart", getRootElement(), function (resource) if resource == getThisResource() then exports.scoreboard:scoreboardAddColumn ( "State" ) setElementData( getLocalPlayer ( ), "State", "Waiting" ) end end ) function onPlayerDead( ammo, attacker, weapon, bodypart ) setElementData( source, "State", "Dead" ) end addEventHandler( "onClientPlayerWasted", getRootElement(), onPlayerDead )
  9. Hi iam Making a resource see if last Player in round then Player sound you are the last men in round Congratulations see my code and Fix Please function DestructionMoney2() local alivePlayers = getAlivePlayers() if #alivePlayers == 1 then local playername = getPlayerName(alivePlayers[1]) local serial = getPlayerSerial(alivePlayers[1]) local sound = playSound("sounds/lastmen.mp3") setSoundVolume(sound, 0.5) end
  10. This One http://www.mediafire.com/?w480ct4dci8b0fj
  11. yes LUA Compiler when i try to Encryption my client.lua its say failed to execute luac5.1
  12. i have downlaod lua gui craypt i want to coded my clinet.lua script its say failed to execute luac5.1 wtf !
  13. SoldSnake i need msg like this If killed soldsnake show msg to me you have got.... and For Players Warning ..name.. have got M4 watch out!
  14. Hi all i have made a script if player kill enmey give him m4 with 20 ammo function xxx (ammo, killer, killerweapon, bodypart ) if (killer) and (killer ~= source ) then giveWeapon ( source, 31, 20 ) outputChatBox("You Have got M4 For Kill The Noob!!",killer,255,255,0) end end addEventHandler ("onPlayerWasted",getRootElement() , xxx) how to add msg for all players Warning player Name have got M4 For Kill a Noop !
  15. Mybye You Have to use addEventHandler ( "onClientMarkerHit", getRootElement(), hitmanMarker ) ?
  16. Hi all i have made script if player spwan Play sound is there any error ? ClientSide------------ function playSonido() local sound = playSound("m.wav",false) setSoundVolume(sound, 1.9) end addEvent("sonido",true) addEventHandler("sonido",getRootElement(),playSonido) serverSide------------ function xxx (thePlayer) triggerClientEvent("sonido",getRootElement()) end addEventHandler ( "onClientPlayerSpawn", getRootElement(), xxx )
  17. mirror For You Orange iam x[Dev-PoinT] i vist you in your server lol This is Mirror http://www.mediafire.com/?w480ct4dci8b0fj
  18. Client side---- addEvent("playSomeSound", true) addEventHandler("playSomeSound", getRootElement(), playSound) serverSide--- if team1survivers > team2survivers then triggerClientEvent("playSomeSound", getRootElement(), "sounds/team1.ogg") local alltheplayers = getElementsByType("player") for index, thisplayer in ipairs(alltheplayers) do textDisplayAddObserver( redwinsdisplay, thisplayer ) end local teampoints = getElementData ( team1, "Score" ) setElementData ( team1, "Score", teampoints+1 ) end if team2survivers > team1survivers then triggerClientEvent("playSomeSound", getRootElement(), "team2.mp3") local alltheplayers = getElementsByType("player") for index, thisplayer in ipairs(alltheplayers) do textDisplayAddObserver( bluewinsdisplay, thisplayer ) end end
  19. another error wtf server.lua :1: attempt to compare tow nill valuse! if team1survivers > team2survivers then triggerClientEvent("playSomeSound", getRootElement(), "sounds/team1.ogg") local alltheplayers = getElementsByType("player") for index, thisplayer in ipairs(alltheplayers) do textDisplayAddObserver( redwinsdisplay, thisplayer ) end local teampoints = getElementData ( team1, "Score" ) setElementData ( team1, "Score", teampoints+1 ) end if team2survivers > team1survivers then triggerClientEvent("playSomeSound", getRootElement(), "team2.mp3") local alltheplayers = getElementsByType("player") for index, thisplayer in ipairs(alltheplayers) do textDisplayAddObserver( bluewinsdisplay, thisplayer ) end end
  20. i have error in my script see server.lua:15: ,end, expected >toclose ,if, at line 10 if team1survivers > team2survivers then triggerClientEvent("playSomeSound", getRootElement(), "sounds/team1.ogg") local alltheplayers = getElementsByType("player") for index, thisplayer in ipairs(alltheplayers) do textDisplayAddObserver( redwinsdisplay, thisplayer ) end local teampoints = getElementData ( team1, "Score" ) setElementData ( team1, "Score", teampoints+1 ) end if team2survivers > team1survivers then triggerClientEvent("playSomeSound", getRootElement(), "team2.mp3") local alltheplayers = getElementsByType("player") for index, thisplayer in ipairs(alltheplayers) do textDisplayAddObserver( bluewinsdisplay, thisplayer ) end
  21. Hi all i have make the 1script its just a test to know my errors see and tell me if if coreccet or not ! function xxx (ammo, killer, killerweapon, bodypart ) if (killer) and (killer ~= source ) then givePlayerMoney (killer,90 outputChatBox("You Have got $90 For Kill The Noob!!",255,255,0)(ThePlayer) end end addEventHandler ("onPlayerWasted",getRootElement() , xxx)
  22. Hi all i have a lot of scripts i need to compal them i have install xtreme lua compaler and select the client side file he say error file not found!! i have windows 7 !
  23. Hi all if you all remmeber BaseMode it dont have finsh map sound at all what command i use ? onMapFinsh Play sound? Please i need the code so mutch
  24. Hi i have start the script and start assult gamemode and choose Team But No Msg show to me and i but it client in meta.xml see addEvent ( "onPlayerChooseTeam" , true ) addEventHandler ( "onPlayerChooseTeam" , root , function ( teamName ) local team = getTeamFromName ( teamName ) setPlayerTeam ( source , team ) outputChatBox("You have successfully choosed "..getTeamName(team).." team.", resPlayer, root, 255, 255, 0) end )
  25. E-mail

    dxImages

    Hi Use This maybe https://wiki.multitheftauto.com/wiki/IsCursorShowing
×
×
  • Create New...