Jump to content

LiOneLMeSsIShoT

Members
  • Posts

    609
  • Joined

  • Last visited

Everything posted by LiOneLMeSsIShoT

  1. Again........Same ERROR...I think the error with Nothing = 100 ... about local Nothing = tonumber(getPedStat(killer, 69)) if Nothing = 100 I think it's not correct? Please check ... I want the 100 Means....the Weapon Skill Points..Understand what i mean?
  2. DID it already~ The Same ERROR...: weaponPoints_c.lua:124: 'then' expected near '=' if Nothing = 100 and weapon = 22 then
  3. Now i got another ERROR: WeaponPoints_c.lua:128: 'then' expected near '=' The ERROR is here in :128:...Just shows because it's not the full script if WeaponLevels = 100 and weapon = 22 then HEllo?!!! Are you here guys?
  4. Now i got another ERROR: WeaponPoints_c.lua:128: 'then' expected near '=' The ERROR is here in :128:...Just shows because it's not the full script if Nothing = 100 and weapon = 22 then
  5. Now i got another ERROR: WeaponPoints_c.lua:128: 'then' expected near '='
  6. I think he made a panel. I made a panel Already
  7. Hello guys .. I made this script to set Levels every 100 Points in weapon skills...but i got some script ERRORS...may you help me with it? Client: function WeaponLevels (killer, weapon, bodypart) local Nothing = tonumber(getPedStat(killer, 69)) if Nothing = 100 and weapon = 22 then guiSetText (GUIEditor.label[3], "Level: 1",Nothing) elseif Nothing = 200 and weapon = 22 then guiSetText (GUIEditor.label[3], "Level: 2",Nothing) elseif Nothing = 300 and weapon = 22 then guiSetText (GUIEditor.label[3], "Level: 3",Nothing) elseif Nothing = 400 and weapon = 22 then guiSetText (GUIEditor.label[3], "Level: 4",Nothing) elseif Nothing = 500 and weapon = 22 then guiSetText (GUIEditor.label[3], "Level: 5",Nothing) elseif Nothing = 600 and weapon = 22 then guiSetText (GUIEditor.label[3], "Level: 6",Nothing) elseif Nothing = 700 and weapon = 22 then guiSetText (GUIEditor.label[3], "Level: 7",Nothing) elseif Nothing = 800 and weapon = 22 then guiSetText (GUIEditor.label[3], "Level: 8",Nothing) elseif Nothing = 900 and weapon = 22 then guiSetText (GUIEditor.label[3], "Level: 9",Nothing) elseif Nothing = 1000 and weapon = 22 then guiSetText (GUIEditor.label[3], "Level: 10",Nothing) end end addEventHandler( "onClientRender",getRootElement(), WeaponLevels) ERROR: WeaponPoints.lua:125: 'then' expected near '=' Please help
  8. I'm already Added addEventHandler and addEvent in the script...you may check it. and if something not in the script must be...just tell me please...and it's resource...not gamemode
  9. Okay gonna try it and what ~= mean? Still dosen't work
  10. Okay gonna try it and what ~= mean?
  11. This script i use to give me 1 Point every zombie Head shot..and 0.5 Every Zombie Any Body Part Kill....But the problem...the script only score the Head shot Point...The another body parts not score it Server side: addEvent( "onZombieWasted", true ); addEventHandler( "onZombieWasted", root, function ( killer, weapon, bodypart ) if killer and killer ~= source then if bodypart == 9 and weapon == 22 then setPedStat( killer, 69, getPedStat( killer, 69 ) + 1 ); elseif killer and killer ~= source then if bodypart == 8 and weapon == 22 then setPedStat( killer, 69, getPedStat( killer, 69 ) + 0.5 ); elseif killer and killer ~= source then if bodypart == 7 and weapon == 22 then setPedStat( killer, 69, getPedStat( killer, 69 ) + 0.5 ); elseif killer and killer ~= source then if bodypart == 6 and weapon == 22 then setPedStat( killer, 69, getPedStat( killer, 69 ) + 0.5 ); elseif killer and killer ~= source then if bodypart == 5 and weapon == 22 then setPedStat( killer, 69, getPedStat( killer, 69 ) + 0.5 ); elseif killer and killer ~= source then if bodypart == 4 and weapon == 22 then setPedStat( killer, 69, getPedStat( killer, 69 ) + 0.5 ); elseif killer and killer ~= source then if bodypart == 3 and weapon == 22 then setPedStat( killer, 69, getPedStat( killer, 69 ) + 0.5 ); end end end end end end end end end end end end end ); Client Side: function LiOneLMeSsI() local LiOneLMeSsI = getPedStat( localPlayer, 69 ); guiSetText( GUIEditor.label[2],"Points: "..LiOneLMeSsI ); end addEventHandler( "onClientRender", root, LiOneLMeSsI ); also there's no any Problem in CMD screen or in Debug...
  12. Working 100% when changed the weapon == 69 to 22 .Thanks
  13. ERROR: WeaponPoints.lua:3: '(' expect near 'ZombieKill'
  14. Thanks a lot ...And Thanks a lot Ifahad too!! lol...when i just shot and kill zombie with another weapon too..the points get saved!! lol ..any weapon i kill zombie with...saves in the same label !..and the problem's back again..when i just open the resource..the panel come over my face and say hello again Please still need your help guys!!..when i use another weapon to kill a a zombie..the points get saved in the same label...i made this label only for Colt-45 Slot Weapon ID 22....Please help..and when i start the resource...i get the panel over my screen..and i made it works only with f7..help
  15. Thanks a lot ...And Thanks a lot Ifahad too!! lol...when i just shot and kill zombie with another weapon too..the points get saved!! lol ..any weapon i kill zombie with...saves in the same label !..and the problem's back again..when i just open the resource..the panel come over my face and say hello again
  16. Thanks a lot ...And Thanks a lot Ifahad too!!
  17. okay look before i test the script..there's another problem..when the resource start ..the panel opens over my face..i want to remove the event handler called onClientResourceStart..already removed it but the script not work anymore..then puted it again..please may you help with this? After test..ERROR WeaponPoints.lua:3: ')' expect near '='
  18. okay look before i test the script..there's another problem..when the resource start ..the panel opens over my face..i want to remove the event handler called onClientResourceStart..already removed it but the script not work anymore..then puted it again..please may you help with this?
  19. I want to make this script shows the player stat in this panel...idk why it's not work can someone help me please... server side: function ZombieKill ( killer, weapon, bodypart) if (killer and killer ~= source) then if ( bodypart = 9 ) then setPedStat(killer, 69, +5) end end end addEventHandler("onZombieWasted",getRootElement(),ZombieKill) Client Side: --[[------------------------------------------------- Notes: > This code is using a relative image filepath. This will only work as long as the location it is from always exists, and the resource it is part of is running. To ensure it does not break, it is highly encouraged to move images into your local resource and reference them there. --]]------------------------------------------------- GUIEditor = { window = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(295, 115, 457, 548, "Weapon Skills Panel", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.staticimage[1] = guiCreateStaticImage(25, 46, 63, 58, ":shop1/images/22.png", false, GUIEditor.window[1]) GUIEditor.label[1] = guiCreateLabel(90, 84, 22, 15, "0%", false, GUIEditor.window[1]) end ) function Nothing() guiSetText(GUIEditor.label[1],""..getPedStat(source, 69)) end addEventHandler("onClientRender", getRootElement(), Nothing) bindKey("F7","Down",function() guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) showCursor(guiGetVisible(GUIEditor.window[1])) end) and thanks for helping
  20. When i Reconnect and join again to my server...My weapon be gone...I don't see the weapon i had any more...Why? include i got the save system
  21. Woohoo!!! Working Clear Cool Nice Thanks a lot of your nice HELP .. may you add me in skype?: lionelmessishoter .. i want to speak with you
  22. The Error is i can buy the uzi but i can't buy the ammo for it..but another weapons's working correctly... Error From CMD: No Error get from CMD window..
  23. AHA!! Understand now gonna try and tell you..thanks look changed it and got another problem but fixed too..everything's fixed now but there's another error but not shown anything in CMD window..with when i buy UZI weapon works..but when i buy the ammo for it..it tells me the message "i think you forgot to buy UZI first" but i bought it already...Another weapons're Working good normal with buy gun and buy ammo..This scripts after i fixed Server Side: marcadorTienda = createMarker(2285.8000488281,549.59997558594,6.8000001907349,"cylinder",1.5,0,125,250,153) function mostrarTienda(hitPlayer) triggerClientEvent(hitPlayer,"mostrarTienda",getRootElement(),hitPlayer) end addEventHandler("onMarkerHit",marcadorTienda,mostrarTienda) addEvent ("comprocolt_45", true) addEventHandler ("comprocolt_45", getRootElement(), function (id, cost,munic) if (getPlayerMoney (source) >= tonumber(cost)) then outputChatBox ("Congratulations!,You Bought a colt", source, 0, 255, 0, false) takePlayerMoney (source, tonumber (cost)) giveWeapon(source, tonumber (id),tonumber (munic)) else outputChatBox ("No money? Go kill some Zombies", source, 255, 0, 0, false) end end) addEvent ("comproShotgun", true) addEventHandler ("comproShotgun", getRootElement(), function (id, cost,munic) if (getPlayerMoney (source) >= tonumber(cost)) then outputChatBox ("Congratulations!,You bought a Shotgun", source, 0, 255, 0, false) takePlayerMoney (source, tonumber (cost)) giveWeapon(source, tonumber (id),tonumber (munic)) else outputChatBox ("No money? Go kill some Zombies", source, 255, 0, 0, false) end end) addEvent ("comprotec_9", true) addEventHandler ("comprotec_9", getRootElement(), function (id, cost,munic) if (getPlayerMoney (source) >= tonumber(cost)) then outputChatBox ("Congratulations!,You bought a tec_9", source, 0, 255, 0, false) takePlayerMoney (source, tonumber (cost)) giveWeapon(source, tonumber (id),tonumber (munic)) else outputChatBox ("No money? Go kill some Zombies", source, 255, 0, 0, false) end end) addEvent ("comproUZI", true) addEventHandler ("comproUZI", getRootElement(), function (id, cost,munic) if (getPlayerMoney (source) >= tonumber(cost)) then outputChatBox ("Congratulations!,You bought a UZI", source, 0, 255, 0, false) takePlayerMoney (source, tonumber (cost)) giveWeapon(source, tonumber (id),tonumber (munic)) else outputChatBox ("No money? Go kill some Zombies", source, 255, 0, 0, false) end end) addEvent ("comproMunicionUZI", true) addEventHandler ("comproMunicionUZI", getRootElement(), function (id, cost,munic) local tieneUZI = getPedWeapon(source,5) if (getPlayerMoney (source) >= tonumber(cost)) and (tieneUZI == 28) then outputChatBox ("Congratulations!,you bought a UZI ammo", source, 0, 255, 0, false) takePlayerMoney (source, tonumber (cost)) giveWeapon(source,tonumber(id),tonumber(munic)) elseif (getPlayerMoney (source) >= tonumber(cost)) and (tieneUZI ~= 28) then outputChatBox ("Ehm,I think you forgot to buy the UZI First -.-", source, 255, 0, 0, false) elseif (getPlayerMoney (source) < tonumber(cost)) and (tieneUZI == 28) then outputChatBox ("No money? Go kill some zombies", source, 255, 0, 0, false) else outputChatBox ("Ehm,I think you forgot to buy the UZI First -.-", source, 255, 0, 0, false) end end) addEvent ("comproMuniciontec_9", true) addEventHandler ("comproMuniciontec_9", getRootElement(), function (id, cost,munic) local tienetec_9 = getPedWeapon(source,4) if (getPlayerMoney (source) >= tonumber(cost)) and (tienetec_9 == 32) then outputChatBox ("Congratulations!,You bought a tec_9 Ammo", source, 0, 255, 0, false) takePlayerMoney (source, tonumber (cost)) giveWeapon(source,tonumber(id),tonumber(munic)) elseif (getPlayerMoney (source) >= tonumber(cost)) and (tienetec_9 ~= 32) then outputChatBox ("Ehm,I think you forgot to buy the tec_9 First -.-", source, 255, 0, 0, false) elseif (getPlayerMoney (source) < tonumber(cost)) and (tienetec_9 == 32) then outputChatBox ("No money? Go kill some zombies", source, 255, 0, 0, false) else outputChatBox ("Ehm,I think you forgot to buy the tec_9 First -.-", source, 255, 0, 0, false) end end) addEvent ("comproMunicionShotgun", true) addEventHandler ("comproMunicionShotgun", getRootElement(), function (id, cost,munic) local tieneShotgun = getPedWeapon(source,3) if (getPlayerMoney (source) >= tonumber(cost)) and (tieneShotgun == 25) then outputChatBox ("Congratulations,You bought a shotgun ammo", source, 0, 255, 0, false) takePlayerMoney (source, tonumber (cost)) giveWeapon(source,tonumber(id),tonumber(munic)) elseif (getPlayerMoney (source) >= tonumber(cost)) and (tieneShotgun ~= 25) then outputChatBox ("Ehm,I think you forgot to buy the Shotgun First -.-", source, 255, 0, 0, false) elseif (getPlayerMoney (source) < tonumber(cost)) and (tieneShotgun == 25) then outputChatBox ("No money? Go kill some zombies.", source, 255, 0, 0, false) else outputChatBox ("Ehm,I think you forgot to buy the Shotgun First -.-", source, 255, 0, 0, false) end end) addEvent ("comproMunicioncolt_45", true) addEventHandler ("comproMunicioncolt_45", getRootElement(), function (id, cost,munic) local tienecolt_45 = getPedWeapon(source,2) if (getPlayerMoney (source) >= tonumber(cost)) and (tienecolt_45 == 22) then outputChatBox ("Congartulations,You bought a Colt ammo", source, 0, 255, 0, false) takePlayerMoney (source, tonumber (cost)) giveWeapon(source,tonumber(id),tonumber(munic)) elseif (getPlayerMoney (source) >= tonumber(cost)) and (tienecolt_45 ~= 22) then outputChatBox ("Ehm,I think you forgot to buy the Colt First -.-", source, 255, 0, 0, false) elseif (getPlayerMoney (source) < tonumber(cost)) and (tienecolt_45 == 22) then outputChatBox ("No money? Go kill some zombies", source, 255, 0, 0, false) else outputChatBox ("Ehm,I think you forgot to buy the Colt First -.-", source, 255, 0, 0, false) end end) addEventHandler("onResourceStart",getRootElement(), function () outputChatBox("Gunshop by LiOneLMeSsI") end ) Client Side: GUIEditor_Image = {} tiendaDeArmas2 = guiCreateWindow(181,168,456,318,"Gun Shop By:LiOneLMeSsI",false) botonComprarcolt_45 = guiCreateButton(15,106,99,26,"Colt($100)",false,tiendaDeArmas2) botonComprarShotgun = guiCreateButton(121,106,99,26,"Shotgun($500)",false,tiendaDeArmas2) botonComprartec_9 = guiCreateButton(226,106,99,26,"tec_9($650)",false,tiendaDeArmas2) botonComprarUZI = guiCreateButton(330,106,98,26,"UZI($700)",false,tiendaDeArmas2) botonComprarMuniccolt_45 = guiCreateButton(11,234,105,26,"Ammo.x17($10)",false,tiendaDeArmas2) botonComprarMunicUZI = guiCreateButton(336,234,105,26,"Ammo.x20($50)",false,tiendaDeArmas2) botonComprarMunictec_9 = guiCreateButton(228,234,105,26,"Ammo.x30($40)",false,tiendaDeArmas2) botonComprarMunicShotgun = guiCreateButton(120,234,105,26,"Ammo.x17($25)",false,tiendaDeArmas2) munictec_9Img = guiCreateStaticImage(248,154,68,73,"images/53.png",false,tiendaDeArmas2) municUZIImg = guiCreateStaticImage(356,155,62,70,"images/55.png",false,tiendaDeArmas2) municcolt_45Img = guiCreateStaticImage(35,157,64,71,"images/51.png",false,tiendaDeArmas2) municShotgunImg = guiCreateStaticImage(141,154,66,72,"images/52.png",false,tiendaDeArmas2) imagecolt_45 = guiCreateStaticImage(35,38,63,61,"images/22.png",false,tiendaDeArmas2) imageUZI = guiCreateStaticImage(342,36,64,62,"images/28.png",false,tiendaDeArmas2) imagetec_9 = guiCreateStaticImage(242,34,65,65,"images/32.png",false,tiendaDeArmas2) imageEscopeta = guiCreateStaticImage(138,37,65,62,"images/25.png",false,tiendaDeArmas2) Salir = guiCreateButton(362,279,70,25,"Close",false,tiendaDeArmas2) guiWindowSetMovable(tiendaDeArmas2,false) guiWindowSetSizable(tiendaDeArmas2,false) guiSetVisible(tiendaDeArmas2,false) function mostrarTienda() guiSetVisible (tiendaDeArmas2,true) showCursor(true) end addEvent("mostrarTienda",true) addEventHandler("mostrarTienda",getRootElement(),mostrarTienda) function closeShop2() if guiGetVisible(tiendaDeArmas2) then guiSetVisible(tiendaDeArmas2,false) showCursor(false) end end addEventHandler ("onClientGUIClick", Salir, closeShop2) function darcolt_45() local itemID = 22 local itemCost = 100 local itemMunic = 1 triggerServerEvent ("comprocolt_45", getLocalPlayer(), itemID, itemCost,itemMunic) end addEventHandler ("onClientGUIClick", botonComprarcolt_45, darcolt_45) function darShotgun() local itemID = 25 local itemCost = 500 local itemMunic = 1 triggerServerEvent ("comproShotgun", getLocalPlayer(), itemID, itemCost,itemMunic) end addEventHandler ("onClientGUIClick", botonComprarShotgun, darShotgun) function dartec_9() local itemID = 32 local itemCost = 600 local itemMunic = 1 triggerServerEvent ("comprotec_9", getLocalPlayer(), itemID, itemCost,itemMunic) end addEventHandler ("onClientGUIClick", botonComprartec_9, dartec_9) function darUZI() local itemID = 28 local itemCost = 700 local itemMunic = 1 triggerServerEvent ("comproUZI", getLocalPlayer(), itemID, itemCost,itemMunic) end addEventHandler ("onClientGUIClick", botonComprarUZI, darUZI) function darMunicUZI() local armaID = 28 local itemCost = 50 local itemMunic = 30 triggerServerEvent ("comproMunicionUZI", getLocalPlayer(), armaID, itemCost,itemMunic) end addEventHandler ("onClientGUIClick", botonComprarMunicUZI, darMunicUZI) function darMunictec_9() local armaID = 32 local itemCost = 40 local itemMunic = 30 triggerServerEvent ("comproMuniciontec_9", getLocalPlayer(), armaID, itemCost,itemMunic) end addEventHandler ("onClientGUIClick", botonComprarMunictec_9, darMunictec_9) function darMunicShotgun() local armaID = 25 local itemCost = 25 local itemMunic = 17 triggerServerEvent ("comproMunicionShotgun", getLocalPlayer(), armaID, itemCost,itemMunic) end addEventHandler ("onClientGUIClick", botonComprarMunicShotgun, darMunicShotgun) function darMuniccolt_45() local armaID = 22 local itemCost = 10 local itemMunic = 17 triggerServerEvent ("comproMunicioncolt_45", getLocalPlayer(), armaID, itemCost,itemMunic) end addEventHandler ("onClientGUIClick", botonComprarMuniccolt_45, darMuniccolt_45) Please help me with this ....and THanks a lot
×
×
  • Create New...