Jump to content

Leonard.DC

Members
  • Posts

    86
  • Joined

  • Last visited

Everything posted by Leonard.DC

  1. I detect the problems, the problems is with local team = getPlayerTeam ( attacker ) and getTeamName( team ) == "Criminal" it broke all teh script, but i dont know how to fix it
  2. Yep man no problem, I know what do you want to see, I will take 2 guys from my server to test it in a hamachi, Regards and see you later i will post if there is a problem
  3. As i say i have my wanted level system, but i don't post it here because it is not necesary for this problem, And yes, All the script are indicated in the meta file
  4. The team criminal alredy exist in my script, i forgot to put it in the lua code sorry, but the team is alredy putted in the script, and it doesn't work
  5. Hi, i just creating a little system that put the people to the Criminal team when then kill other players, i have a wanted level system, when i get the +3 levels, Nothing happens and no debugscript errors, why the people don't auto move to the criminal teams with the selected criminal skins? I need help with these please Full script: Server Side: theSkin = {105, 106, 107, 102, 103, 104, 28, 29} function getWantedLevelAndSetCriminal (ammo, attacker, weapon, bodypart) local team = getPlayerTeam ( attacker ) local wlevel = getPlayerWantedLevel ( attacker ) if attacker and attacker ~= source then if getElementType ( attacker ) == "player" then if wlevel > 3 and not getTeamName( team ) == "Criminal" then setPlayerTeam(attacker, Criminalteam) outputChatBox ("You are a Dmer !", attacker, 255, 0, 0) setTimer (triggerClientEvent, 1000, 1, attacker, "messCrim", attacker ) setElementModel (attacker, theSkin[math.random(1, #theSkin)] ) setPlayerNametagColor ( attacker, 255, 0, 0 ) setTimer (triggerClientEvent, 1000, 1, attacker, "createHouseEvent", attacker ) end end end end addEventHandler ("onPlayerWasted", root, getWantedLevelAndSetCriminal) Client Side: function setWantedDx () local sWidth,sHeight = guiGetScreenSize() dxDrawText("Stop Killing People Without Reason", sWidth * 0.27890625, sHeight * 0.904296875, sWidth * 0.7609375, sHeight * 0.9443359375, tocolor(0, 0, 0, 255), 1.00, "pricedown", "center", "center", false, false, true, false, false) dxDrawText("Stop Killing People Without Reason", sWidth * 0.27890625, sHeight * 0.90234375, sWidth * 0.7609375, sHeight * 0.9423828125, tocolor(0, 0, 0, 255), 1.00, "pricedown", "center", "center", false, false, true, false, false) dxDrawText("Stop Killing People Without Reason", sWidth * 0.27734375, sHeight * 0.904296875, sWidth * 0.759375, sHeight * 0.9443359375, tocolor(0, 0, 0, 255), 1.00, "pricedown", "center", "center", false, false, true, false, false) dxDrawText("Stop Killing People Without Reason", sWidth * 0.27734375, sHeight * 0.90234375, sWidth * 0.759375, sHeight * 0.9423828125, tocolor(0, 0, 0, 255), 1.00, "pricedown", "center", "center", false, false, true, false, false) dxDrawText("Stop Killing People Without Reason", sWidth * 0.278125, sHeight * 0.9033203125, sWidth * 0.76015625, sHeight * 0.943359375, tocolor(255, 0, 0, 255), 1.00, "pricedown", "center", "center", false, false, true, false, false) end function setWanted () addEventHandler("onClientRender",getRootElement(),setWantedDx) playSound ("fail.mp3") setTimer(function() removeEventHandler("onClientRender",getRootElement(),setWantedDx) end,7000,1) end addEvent ("messCrim", true) addEventHandler ("messCrim", root, setWanted)
  6. Reason: stolen copied script, removed the copyrights and some other things from the original Target copied script: https://community.multitheftauto.com/index.php?p= ... ls&id=8681 Original script: https://community.multitheftauto.com/index.php?p= ... ls&id=1877 SCRIPTS ARE CLEARLY DIFFERENT (Edit By .:CiBeR:.)
  7. What are you talking about? I told you there is no positions INSERTED INTO THE DATABASE, what part you can't understand? And how to insert the data to the database?
  8. This is maked by my friend that say me to post the last problem here, can you say me why it doesn't work or fix it please
  9. Hi, i have a turf system vinculed with a gang system, But when i start the script, The turfs doesn't appears, I pressed F11 and i didn't saw any turfing zone why???? The fully turf script: sql = { Query = executeSQLQuery }; -- W = Ancho H= Alto addEventHandler( 'onResourceStart', resourceRoot, function() sql.Query( "CREATE TABLE IF NOT EXISTS Gang_truf (\ ID INTEGER, X REAL, Y REAL, W REAL,\ H REAL, Gang STRING, R ,\ G , B , sX REAL, sY REAL, sZ REAL )" ) setTimer (TiempoDeTrufs, 50000, 0) local t = sql.Query( "SELECT * FROM Gang_truf" ) for i = 1, #t do createTruf( t[i].ID, t[i].X, t[i].Y, t[i].W, t[i].H, t[i].Gang, t[i].R, t[i].G, t[i].B, t[i].sX, t[i].sY, t[i].sZ ) end end ) function setDark (src) if isPlayerInTeam (src, "Staff DA") then local t = sql.Query( "SELECT * FROM Gang_truf" ) for i = 1, #t do setDarkTurf( t[i].ID, t[i].Gang) end end end addCommandHandler ("resetearturf", setDark) function setDarkTurf (ID, gang) if tostring(gang) ~= "" then sql.Query( "UPDATE Gang_truf SET Gang = '', R = '255', G = '255', B = '255' WHERE ID = '"..tonumber(ID).."'" ); end end function createTruf (ID, x, y, w, h, gang, r, g, b, sX, sY, sZ) Truf = createRadarArea (x, y, w, h, tonumber(r), tonumber(g), tonumber(b), 150) Cols = createColRectangle (x, y, w, h) setElementData (Cols, "GangTruf", {ID, gang, Truf}) setElementData (Cols, "GangSpawn", {sX, sY, sZ}) setElementData (Cols, "Probocacion", 0) setElementData (Cols, "EstatusT", "Nada") setElementData (Cols, "GangtersOn", 0) setElementData (Cols, "GangDefensa", 0) setElementData (Cols, "TurfAbandonada", 0) addEventHandler ("onColShapeHit", Cols, function (player) if getElementType (player) == "player" then local GangTruf = getElementData (source, "GangTruf")[2] local MyGang = getElementData (player, "Clan") setElementData (player, "EnTruf", getElementData(source, "GangTruf")[1]) if MyGang ~= "" then if GangTruf then triggerClientEvent (player, "ComprobacionPiso", player) end else outputChatBox ("Debes tener un Clan para iniciar una guerra de territorios (Turf)",player,255,255,255) end end end ) addEventHandler ("onColShapeLeave", Cols, function (player) if getElementType (player) == "player" then setElementData (player, "EnTruf", nil) if getElementData (player, "EnGuerra") == true then if getElementData (source, "Atacante") == getElementData (player, "Clan") then setElementData (source, "GangtersOn", tonumber(getElementData (source, "GangtersOn"))-1) setElementData (player, "EnGuerra", false) end end if getElementData (player, "EnDefensa") == true then if getElementData (source, "GangTruf")[2] == getElementData (player, "Clan") then setElementData (source, "GangDefensa", tonumber(getElementData (source, "GangDefensa"))-1) setElementData (player, "EnDefensa", false) end end end end) end function iniciarCuenta () local truf = getTrufByID (getElementData (source, "EnTruf")) local gang = getElementData (source, "Clan") if truf then if isPlayerInTeam (source, "Criminal") or isPlayerInTeam (source, "Gangsters") then local GangTruf = getElementData (truf, "GangTruf")[2] if gang ~= GangTruf then outputChatBox ("Actualmente este territorio es de "..GangTruf.." Quedate en la zona para iniciar una guerra de territorios",source,255,255,255) else setElementData (source, "EnDefensa", true) setElementData (truf, "GangDefensa", tonumber(getElementData(truf,"GangDefensa"))+1) if getElementData (truf, "Probocacion") > 0 then outputChatBox ("Este Territorio es de tu Clan pero fue atacado | Fuerza: "..getElementData(truf, "Probocacion").."/10 - ["..getElementData (truf, "Atacante").."]"..getElementData (truf, "GangtersOn").." Vs "..getElementData (truf, "GangDefensa").."["..GangTruf.."].",source,255,255,255) else outputChatBox ("Este Territorio pertenece a Tu Clan.",source,255,255,255) end end if getElementData (truf, "EstatusT") == "Nada" then if gang ~= GangTruf then setElementData (truf, "EstatusT", "Iniciando") setElementData (truf, "Atacante", gang) setElementData (source, "EnGuerra", true) end end if getElementData (truf, "EstatusT") == "Iniciando" or getElementData (truf, "EstatusT") == "Atacando" then if gang == getElementData (truf, "Atacante") then setElementData (truf, "GangtersOn", tonumber(getElementData (truf, "GangtersOn"))+1) setElementData (source, "EnGuerra", true) outputChatBox ("Tu Clan esta en Guerra Con este Terretorio | Fuerza: "..getElementData(truf, "Probocacion").."/10 - ["..getElementData (truf, "Atacante").."]"..getElementData (truf, "GangtersOn").." Vs "..getElementData (truf, "GangDefensa").."["..GangTruf.."].",source,255,255,255) else if gang ~= GangTruf then if tonumber(getElementData(truf, "GangtersOn")) == 0 then if getElementData (truf, "EstatusT") == "Iniciando" then setElementData (truf, "Atacante", gang) setElementData (source, "EnGuerra", true) setElementData (truf, "GangtersOn", tonumber(getElementData (truf, "GangtersOn"))+1) else outputChatBox ("Este Territorio esta en Guerra con otra Clan",source,255,255,255) end else outputChatBox ("Este Territorio esta en Guerra con otra Clan",source,255,255,255) end end end end else if gang == "Elite" or gang == "SWAT" or gang == "PDI" then outputChatBox ("Para Iniciar una Guerra nesesitas ser Criminal o Gangster",source,255,0,0) end end end end addEvent ("SiEstaEnPiso", true) addEventHandler ("SiEstaEnPiso", root, iniciarCuenta) function TiempoDeTrufs () for i, v in ipairs( getElementsByType( 'colshape', getResourceRootElement() ) ) do if getElementData( v, 'GangTruf' ) then local p = getElementsWithinColShape (v, "player") local id = getElementData(v, "GangTruf")[1] local viejoMandato = getElementData (v, "GangTruf")[2] local rad = getElementData(v, "GangTruf")[3] local ata = getElementData (v, "Atacante") if getElementData (v, "Probocacion") <= -1 then setElementData (v, "EstatusT", "Nada") setElementData (v, "Atacante", "") setElementData (v, "TurfAbandonada", 2) end if getElementData (v, "EstatusT") == "Iniciando" then setRadarAreaFlashing (rad, false) if tonumber(getElementData (v, "GangtersOn")) >= tonumber(getElementData(v, "GangDefensa")) then setElementData (v, "Probocacion", tonumber(getElementData(v, "Probocacion"))+tonumber(getElementData(v, "GangtersOn"))) for k, players in ipairs (p) do if getElementData (players, "Clan") == tostring(ata) then if tonumber(getElementData(v, "Probocacion")) < 11 then outputChatBox ("Tiempo para Iniciar la Guerra: "..getElementData(v, "Probocacion").."/10.",players,255,255,255) elseif tonumber(getElementData(v, "Probocacion")) >= 11 then outputChatBox ("Iniciaste una Guerra Por Este Territorio",players,255,255,0) end end if getElementData (players, "Clan") == tostring(viejoMandato) then outputChatBox ("Te Estan Ganando Este Territorio... Tiempo "..getElementData(v, "Probocacion").."/10.",players,255,255,255) end end if tonumber(getElementData(v, "Probocacion")) >= 10 then setElementData (v, "EstatusT", "Atacando") setElementData (v, "Probocacion", 0) setRadarAreaFlashing (rad, true) for k, players in ipairs (getElementsByType("player")) do if getElementData (players, "Clan") == tostring(viejoMandato) then outputChatBox ("El Clan "..ata.." Esta Atacando uno de tus Territorios!",players,255,255,255) end end end elseif tonumber(getElementData (v, "GangDefensa")) > tonumber(getElementData(v, "GangtersOn")) then setElementData (v, "Probocacion", tonumber(getElementData(v, "Probocacion"))-tonumber(getElementData(v, "GangDefensa"))) for k, players in ipairs (p) do if getElementData (players, "Clan") == tostring(viejoMandato) then outputChatBox ("Estas Defendiendo bien este Territorio! Tiempo - "..getElementData(v, "Probocacion").."/10.",players,255,255,255) end if getElementData (players, "Clan") == tostring(ata) then outputChatBox ("Tu Clan Va Perdiendo Este Territorio... Tiempo - "..getElementData(v, "Probocacion").."/10.",players,255,255,255) end end if tonumber(getElementData(v, "Probocacion")) <= 0 then setElementData (v, "EstatusT", "Nada") setElementData (v, "Probocacion", 0) setRadarAreaFlashing (rad, false) for k, players in ipairs (p) do if getElementData (players, "Clan") == tostring(ata) then outputChatBox ("el Clan Dueño del Territorio Defindio Vuestro Ataque, MISION FRACASADA!",players,255,255,255) end if getElementData (players, "Clan") == tostring(viejoMandato) then outputChatBox ("Defendiste Correctamente Este Territorio, Buen Trabajo!!",players,255,255,255) end end end end elseif getElementData (v, "EstatusT") == "Atacando" then setRadarAreaFlashing (rad, true) if tonumber(getElementData (v, "GangtersOn")) == 0 and tonumber(getElementData(v, "GangDefensa")) == 0 then setElementData (v, "TurfAbandonada", getElementData(v, "TurfAbandonada")+1) if tonumber(getElementData(v, "TurfAbandonada")) == 12 then setRadarAreaFlashing (rad, false) setElementData (v, "EstatusT", "Nada") setElementData (v, "Atacante", "") setElementData (v, "TurfAbandonada", 0) end else setElementData (v, "TurfAbandonada", 0) end if tonumber(getElementData (v, "GangtersOn")) >= tonumber(getElementData(v, "GangDefensa")) then setElementData (v, "Probocacion", tonumber(getElementData(v, "Probocacion"))+tonumber(getElementData(v, "GangtersOn"))) for k, players in ipairs (p) do outputChatBox ("El Clan Atacante ("..ata..") Va Ganando Este Territorio! ("..getElementData (v, "GangtersOn").." Vs "..getElementData(v, "GangDefensa")..") - Tiempo: "..getElementData(v, "Probocacion").."/10.",players,255,255,255) if getElementData (players, "Clan") == tostring(ata) then if tonumber(getElementData(v, "Probocacion")) > 10 then outputChatBox ("Felicidades, Habeis Ganado la Guerra del Territorio! MISION CUMPLIDA",players,255,255,0) givePlayerMoney (players, 2000) --$2000 setElementData (players, "EnGuerra", false) setElementData (players, "EnDefensa", false) setElementData (players, "display_money", "2000") setElementData (players, "display_respeto", "1") setPedStat (players, 64, getPedStat (players, 64)+1) triggerClientEvent (players, "dx", players) triggerClientEvent (players, "dxr2", players) end end end elseif tonumber(getElementData (v, "GangDefensa")) > tonumber(getElementData(v, "GangtersOn")) then setElementData (v, "Probocacion", tonumber(getElementData(v, "Probocacion"))-tonumber(getElementData(v, "GangDefensa"))) for k, players in ipairs (p) do outputChatBox ("El Clan Defensor ("..viejoMandato..") Va Ganando Este Territorio! ("..getElementData (v, "GangDefensa").." Vs "..getElementData(v, "GangtersOn")..") - Tiempo: "..getElementData(v, "Probocacion").."/10.",players,255,255,255) if getElementData (players, "Clan") == tostring(viejoMandato) then givePlayerMoney (players, 100) if tonumber(getElementData(v, "Probocacion")) <= 0 then setRadarAreaFlashing (rad, false) setElementData (players, "EnGuerra", false) setElementData (players, "EnDefensa", false) outputChatBox ("Felicidades, Defendisteis Vuestro Territorio Con Exito!",players,255,255,0) end end end if tonumber(getElementData(v, "Probocacion")) == 0 then setElementData (v, "EstatusT", "Nada") setElementData (v, "Probocacion", 0) setElementData (v, "GangtersOn", 0) setElementData (v, "GangDefensa", 0) end end if tonumber(getElementData(v, "Probocacion")) > 10 then for k, players in ipairs (getElementsByType("player")) do if getElementData (players, "Clan") == tostring(viejoMandato) then
  10. It doesn't fix, when a player buy a ice cream, the seller doesn't receive money and the outputchatbox function is root or global, i dont know why
  11. Tested? I dont really sure it fix the give money and outputchatbox to the seller
  12. Hi, I have alredy maked a ice cream sell system, when a player enter in the car using the command /sell he can sell ice cream to other players who hits the marker and give the players health, now i want to make when a player buy a ice cream, the seller take the money that the players give to buy a ice cream, for example a player buy a vanilla ice cream for 800$, the seller earn 800$ and the costumer pay 800$ Client: GUIEditor = { button = {}, window = {}, staticimage = {}, memo = {} } GUIEditor.window[1] = guiCreateWindow(374, 240, 440, 493, "Ice Creaaam", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible (GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(10, 383, 126, 100, "CHOCO 3000$", false, GUIEditor.window[1]) local font_0 = guiCreateFont("EmblemaOne.ttf") guiSetFont(GUIEditor.button[1], font_0) GUIEditor.button[2] = guiCreateButton(156, 384, 126, 99, "VAINILLA 1500$", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], font_0) GUIEditor.button[3] = guiCreateButton(302, 384, 126, 99, "BERRY 2500$", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], font_0) GUIEditor.button[4] = guiCreateButton(10, 259, 126, 100, "MENT 2000$", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[4], font_0) GUIEditor.button[5] = guiCreateButton(156, 259, 126, 100, "POLO 1000$", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[5], font_0) GUIEditor.button[6] = guiCreateButton(302, 260, 128, 99, "SORBET 3500$", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[6], font_0) GUIEditor.memo[1] = guiCreateMemo(204, 32, 226, 218, "***************", false, GUIEditor.window[1]) GUIEditor.button[7] = guiCreateButton(10, 176, 184, 68, "I DONT WANT ANYTHING! THX", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[7], font_0) GUIEditor.staticimage[1] = guiCreateStaticImage(10, 29, 185, 137, "helado.png", false, GUIEditor.window[1]) function openTheIceGui () guiSetVisible (GUIEditor.window[1], true) showCursor (true) end addEvent ("openIceP", true) addEventHandler ("openIceP", getRootElement(), openTheIceGui) function vaini () triggerServerEvent ("vaini", localPlayer, localPlayer) end addEventHandler ("onClientGUIClick", GUIEditor.button[2], vaini, false) function choco () triggerServerEvent ("choco", localPlayer, localPlayer) end addEventHandler ("onClientGUIClick", GUIEditor.button[1], choco, false) function fresa () triggerServerEvent ("berry", localPlayer, localPlayer) end addEventHandler ("onClientGUIClick", GUIEditor.button[3], fresa, false) function menta () triggerServerEvent ("ment", localPlayer, localPlayer) end addEventHandler ("onClientGUIClick", GUIEditor.button[4], menta, false) function polo () triggerServerEvent ("polo", localPlayer, localPlayer) end addEventHandler ("onClientGUIClick", GUIEditor.button[5], polo, false) function sorbete () triggerServerEvent ("sorbet", localPlayer, localPlayer) end addEventHandler ("onClientGUIClick", GUIEditor.button[6], sorbete, false) function closeIce () guiSetVisible (GUIEditor.window[1], false) showCursor (false) end addEventHandler ("onClientGUIClick", GUIEditor.button[7], closeIce, false) Server: function heladosVender (thePlayer) local vehocc = getPedOccupiedVehicleSeat (thePlayer) local playerveh = getPedOccupiedVehicle (thePlayer) local x, y, z = getElementPosition (thePlayer) if isPedInVehicle (thePlayer) then if (getElementModel ( playerveh ) == 423 and vehocc == 0) then markerIce = createMarker (x, y, z-1, "cylinder", 4, 0, 255, 0, 255) setElementFrozen (playerveh, true) addEventHandler ("onMarkerHit", markerIce, heladosMarker) else outputChatBox ("*****************************", thePlayer, 255, 0, 0) end end end addCommandHandler ("sell", heladosVender) function noVender (thePlayer) local playerveh = getPedOccupiedVehicle (thePlayer) if isElementFrozen (playerveh) then setElementFrozen (playerveh, false) if isElement (markerIce) then destroyElement (markerIce) end end end addCommandHandler ("nosell", noVender) function heladosMarker (hitElement) if getElementType(hitElement) == "player" and hitElement and not isPedInVehicle (hitElement) then triggerClientEvent (hitElement, "openIceP", hitElement) end end function onPlayerExitWhoper () if (getElementModel ( source ) == 423) then if isElement (markerIce) then destroyElement (markerIce) if isElementFrozen (source) then setElementFrozen (source, false) end end end end addEventHandler ("onVehicleExit", getRootElement(), onPlayerExitWhoper) function consvaini (thePlayer, seller) local consumerHealth = getElementHealth (thePlayer) local name = getPlayerName (thePlayer) local seller = getVehicleOccupant ( source, 0 ) local money = getPlayerMoney (thePlayer) if (money >= 1500) then if (consumerHealth <= 70) then setElementHealth (thePlayer, consumerHealth+30) takePlayerMoney (thePlayer, 1500) givePlayerMoney (thePlayer, 1500) outputChatBox (name.. " *****************", seller, 0, 255, 0) outputChatBox ("**********************", thePlayer, 0, 255, 0) else setElementHealth (thePlayer, 100) takePlayerMoney (thePlayer, 1500) givePlayerMoney (seller, 1500) outputChatBox (name.. " *****************", seller, 0, 255, 0) outputChatBox ("********************", thePlayer, 0, 255, 0) end else outputChatBox ("*********************", thePlayer, 255, 0, 0) end end addEvent ("vaini", true) addEventHandler ("vaini", getRootElement(), consvaini) function conschoc (thePlayer, seller) local consumerHealth = getElementHealth (thePlayer) local name = getPlayerName (thePlayer) local seller = getVehicleOccupant ( source, 0 ) local money = getPlayerMoney (thePlayer) if (money >= 3000) then if (consumerHealth <= 10) then setElementHealth (thePlayer, consumerHealth+90) takePlayerMoney (thePlayer, 3000) givePlayerMoney (seller, 3000) outputChatBox (name.. " *************************", seller, 0, 255, 0) outputChatBox ("*************************", thePlayer, 0, 255, 0) else setElementHealth (thePlayer, 100) takePlayerMoney (thePlayer, 3000) givePlayerMoney (thePlayer, 3000) outputChatBox (name.. " ****************", seller, 0, 255, 0) outputChatBox ("*********************", thePlayer, 0, 255, 0) end else outputChatBox ("********************", thePlayer, 255, 0, 0) end end addEvent ("choco", true) addEventHandler ("choco", getRootElement(), conschoc) function consfres (thePlayer, seller) local consumerHealth = getElementHealth (thePlayer) local name = getPlayerName (thePlayer) local seller = getVehicleOccupant ( source, 0 ) local money = getPlayerMoney (thePlayer) if (money >= 2500) then if (consumerHealth <= 20) then setElementHealth (thePlayer, consumerHealth+80) takePlayerMoney (thePlayer, 2500) givePlayerMoney (seller, 2500) outputChatBox (name.. " *******************", seller, 0, 255, 0) outputChatBox ("**********************", thePlayer, 0, 255, 0) else setElementHealth (thePlayer, 100) takePlayerMoney (thePlayer, 2500) givePlayerMoney (seller, 2500) outputChatBox (name.. " ********************", seller, 0, 255, 0) outputChatBox ("***********************", thePlayer, 0, 255, 0) end else outputChatBox ("**********************", thePlayer, 255, 0, 0) end end addEvent ("berry", true) addEventHandler ("berry", getRootElement(), consfres) function consment (thePlayer, seller) local consumerHealth = getElementHealth (thePlayer) local name = getPlayerName (thePlayer) local money = getPlayerMoney (thePlayer) local seller = getVehicleOccupant ( source, 0 ) if (money >= 2000) then if (consumerHealth <= 50) then setElementHealth (thePlayer, consumerHealth+50) takePlayerMoney (thePlayer, 2000) givePlayerMoney (seller, 2000) outputChatBox (name.. " ****************", seller, 0, 255, 0) outputChatBox ("**************", thePlayer, 0, 255, 0) else setElementHealth (thePlayer, 100) takePlayerMoney (thePlayer, 2000) givePlayerMoney (seller, 2000) outputChatBox (name.. " ****************", seller, 0, 255, 0) outputChatBox ("***************", thePlayer, 0, 255, 0) end else outputChatBox ("*****************", thePlayer, 255, 0, 0) end end addEvent ("ment", true) addEventHandler ("ment", getRootElement(), consment) function conspolo (thePlayer, seller) local consumerHealth = getElementHealth (thePlayer) local name = getPlayerName (thePlayer) local seller = getVehicleOccupant ( source, 0 ) local money = getPlayerMoney (thePlayer) if (money >= 1000) then if (consumerHealth <= 80) then setElementHealth (thePlayer, consumerHealth+20) takePlayerMoney (thePlayer, 1000) givePlayerMoney (seller, 1000) outputChatBox (name.. " **************", seller, 0, 255, 0) outputChatBox ("****************", thePlayer, 0, 255, 0) else setElementHealth (thePlayer, 100) takePlayerMoney (thePlayer, 1000) givePlayerMoney (seller, 1000) outputChatBox (name.. " ***************", seller, 0, 255, 0) outputChatBox ("************, thePlayer, 0, 255, 0) end else outputChatBox ("*******************", thePlayer, 255, 0, 0) end end addEvent ("polo", true) addEventHandler ("polo", getRootElement(), conspolo) function conssorbet (thePlayer, seller) local name = getPlayerName (thePlayer) local seller = getVehicleOccupant ( source, 0 ) local money = getPlayerMoney (thePlayer) if (money >= 3500) then setElementHealth (thePlayer, 100) takePlayerMoney (thePlayer, 3500) givePlayerMoney (seller, 3500) outputChatBox (name.. " *****************", seller, 0, 255, 0) outputChatBox ("***************", thePlayer, 0, 255, 0) else outputChatBox ("**********", thePlayer, 255, 0, 0) end end addEvent ("sorbet", true) addEventHandler ("sorbet", getRootElement(), conssorbet) There are many bugs in the server side script, the seller doesnt receive the money and the outputchatbox event doesnt execute for the seller, can anyone fix it please
  13. No more questions, i think you underestimated me, But no problem, Your opinion is your opinion, Anyway im busy now helping in a big RPG project, Something like SAES or SAUR or SX, It will take me very mutch time and i anyway can't make scripts to other people who pays, Regards, "If you want" you can close the topic
  14. Im not pro, But i have some big knowledge, A question, Do you think 2 years is little time? A Concerned Citizen Reply: Why you misc Sane in this topic?
  15. I think a bullshit script bug all the blips
  16. is as false as it could be. I'm sorry to disappoint you like this but you have to understand that you simply can't ask money for your level of experience. That's just ripping off people. Again, take this as feedback to improve upon yourself. I'm not being a hater here, just pointing out some facts you have to know about. Crazy! How you can make a gui without the GUI EDITOR script, Its imposible jajaja, You cant take the coordinates. And how you can explain this basic code i have maked in 4 sec: function nameTagOnLogin () if not isPlayerInTeam(source, getRootElement()) then setPlayerNametagColor ( source, 0, 0, 0 ) end end addEventHandler ("onPlayerLogin", getRootElement(), nameTagOnLogin) This sets a nametag when player login if the player not in a team
  17. mmm, not sure, i think it is my internet lag, it is posible if the blip appear on the map and not in the radar? Or it simply my internet bug? Because i think the code is fine
  18. I have a very little bug with the blips in a Pilot Job maked by me, The blips shows exelent when the player start the job, But only in the map, Not in the radar, Why??? local pilotRings = { { 1887, -1113, 170 }; { 2092, -1160, 170 }; { 1896, -1165, 170 }; { 2068, -1720, 170 }; { 1970, -1671, 170 }; { 1895, -1071, 170 }; { 1940, -1066, 170 }; { 1955, -1074, 170 }; { 1960, -1069, 170 }; { 1956, -1115, 170 }; { 1945, -1115, 170 }; { 1924, -1115, 170 }; { 1900, -1114, 170 }; { 2596, -1237, 170 }; { 2595, -1199, 170 }; { 2516, -1028, 170 }; { 2630, -1072, 170 }; { 2794, -1246, 170 }; { 2809, -1176, 170 }; { 2586, -953, 170 }; { 2397.470703125, -1795.9013671875, 170 }; { 2508.0615234375, -2018.5390625, 170 }; { 2153.5810546875, -1807.6865234375, 170 }; { 2149.7548828125, -1587.15234375, 170 }; { 1742.9638671875, -1862.6953125, 170 }; } function unpackPilot () return unpack ( pilotRings [ math.random ( #pilotRings ) ] ) end addEvent ( "createPilotEvent", true ) function createRings () x, y, z = unpackPilot () pilotMarker = createMarker ( x, y, z, "ring", 8.0, 0, 255, 141, 255, localPlayer ) pilotBlip = createBlipAttachedTo ( pilotMarker, 41, localPlayer ) end addEventHandler ( "createPilotEvent", root, createRings ) You don't need the full code, because the bugged blips are in the part of code i show
  19. With this caracter, i will not show you anything, are you stupid? I have not copied anything from any other script, I have maked this client side without help, and if you don't want do buy my scripts, simple do not do it, get out of here hater
  20. Are you sure? The script i have maked doesn't have any issue, Im having it right now in my console server and it works without problems, So if you want some more advanced job, You must pay me, As i said, It is basic ...
  21. GUIEditor = { label = {}, window = {} } windowafk = guiCreateWindow(445, 863, 426, 104, "Safe Zone!", false) guiWindowSetSizable(windowafk, false) guiSetProperty(windowafk, "CaptionColour", "FFFF0000") guiSetVisible (windowafk, false) message = guiCreateLabel(5, 23, 416, 75, "Get Out Of Here in 2 Min!", false, windowafk) local font_0 = guiCreateFont("customfont.ttf") guiSetFont(mensaje, font_0) guiLabelSetHorizontalAlign(message, "center", false) guiLabelSetVerticalAlign(message, "center") function godmodeHandler () cancelEvent () end addEvent ("enableGod",true) addEventHandler ("enableGod",getRootElement(), function() guiSetVisible (windowafk, true) local microsound = playSound ("fail.mp3") setSoundVolume (microsound, 0.5) addEventHandler ("onClientPlayerDamage",getRootElement(), godmodeHandler) end) addEvent ("disableGod",true) addEventHandler ("disableGod",getRootElement(), function() removeEventHandler ("onClientPlayerDamage",getRootElement(), godmodeHandler) guiSetVisible (windowafk, false) end) Another no camping zone gui on hospitals and lspd, that appear when a col is hited, but this is only client side script, the server side is a personas script, i hope you say its nice
  22. Are you see the code? there are alredy added setTimer(fadeCamera, 8000, 1, source, """false, 1.5""") setTimer(fadeCamera, 9500, 1, source, """true, 1.5""")
  23. EDIT: BAD SCRIPTER, SCAMMER, NOT RECOMMENDED
  24. Contact e-mail: [email protected], Im a cheap scripter but i will not make you full gamemodes or something, and i think you ask for a Really Big part of a gamemode
×
×
  • Create New...