-
Posts
100 -
Joined
-
Last visited
-
Days Won
3
Everything posted by Oussema
-
Hi ! you can check OnVehicleExplode
-
[ EN ] [ Multi Gamemode ] SAEG : RPG 5.2v RPG / CnR
Oussema replied to XWolverine's topic in Servers to play on
Nice to see that :) -
i can get command args with these functions ? for example /bind a useitem itemName and when i use these function i can get the key & the item name !!
-
Hi , is there way to disable bind "key" "command" from console or Chat ! i'll try to explain more , i have inventory system which have command /useitem (itemname) and players can bind the command and i won't them bind it sorry
-
tableNamePlayersTFO = { {"theBlack"}, {"Alpicture"}, {"Delmon"} }, MarkerTFO = createMarker ( 2772.85, -2514.28, 13.63 - 1, 'cylinder', 5.0, 255, 0, 0, 0 ) MarkerTwoTFO = createMarker ( 2767.72, -2518.99, 13.64 - 1, 'cylinder', 5.0, 255, 0, 0, 0 ) function SetSkinTFO(player) if getElementData(player,'vipskin') == true then else if getElementType ( player ) == "vehicle" then else for i, v in ipairs(tableNamePlayersTFO) do if getPlayerName ( player ) == ( v[1] ) then if (getPlayerSkin(player) == 290) then else setPlayerSkin(player, 290) end end else local PlayerTeamTFO = getPlayerTeam ( player ) local TeamNTFO = getTeamFromName ( "The First Order" ) if isElementWithinMarker ( player, MarkerTFO ) or isElementWithinMarker ( player, MarkerTwoTFO ) then if PlayerTeamTFO == TeamNTFO then if (getPlayerSkin(player) == 288) then else setPlayerSkin(player, 288) end end end end end end end addEventHandler("onMarkerHit", MarkerTFO, SetSkinTFO) addEventHandler("onMarkerHit", MarkerTwoTFO, SetSkinTFO) This will work
- 1 reply
-
- 1
-
statsWindows = guiCreateStaticImage(0.80, 0.20, 0.19, 0.21, "images/deb.png",true) guiSetAlpha(statsWindows,0.8) local screenW,screenH = guiGetScreenSize() local resW,resH = 1280,720 local sW,sH = (screenW/resW), (screenH/resH) local dxText = false function mis () dxDrawText ( "Mission1:",1035*sW, 180*sH, 130*sW, 27*sH, tocolor ( 255, 255, 0, 255 ), 1.20, "default-bold" ) if getElementData(localPlayer,"package") >= 1 then dxDrawText ( "Completed",1200*sW, 180*sH, 130*sW, 27*sH, tocolor ( 0, 255, 64, 255 ), 1.0, "default-bold" ) else dxDrawText ( "Not completed",1200*sW, 180*sH, 130*sW, 27*sH, tocolor ( 255, 64, 0, 255 ), 1.0, "default-bold" ) end dxDrawText ( "Mission2:",1035*sW, 200*sH, 130*sW, 27*sH, tocolor ( 255, 255, 0, 255 ), 1.20, "default-bold" ) if getElementData(localPlayer,"package") >= 1 or getElementData(localPlayer,"package") >= 1 then dxDrawText ( "Completed",1200*sW, 200*sH, 130*sW, 27*sH, tocolor ( 0, 255, 64, 255 ), 1.0, "default-bold" ) else dxDrawText ( "Not completed",1200*sW, 200*sH, 130*sW, 27*sH, tocolor ( 255, 64, 0, 255 ), 1.0, "default-bold" ) end dxDrawText ( "Mission3:",1035*sW, 220*sH, 130*sW, 27*sH, tocolor ( 255, 255, 0, 255 ), 1.20, "default-bold" ) if getElementData(localPlayer,"package") >= 1 then dxDrawText ( "Completed",1200*sW, 220*sH, 130*sW, 27*sH, tocolor ( 0, 255, 64, 255 ), 1.0, "default-bold" ) else dxDrawText ( "Not completed",1200*sW, 220*sH, 130*sW, 27*sH, tocolor ( 255, 64, 0, 255 ), 1.0, "default-bold" ) end end function showDebugMonitor () local visible = guiGetVisible(statsWindows) guiSetVisible(statsWindows,not visible) local visible2 = guiGetVisible(mis) guiSetVisible(mis,not visible2) if dxText ~= true then dxText = false removeEventHandler( "onClientRender", root, mis) else dxText = true addEventHandler( "onClientRender", root, mis) end end bindKey("7","down",showDebugMonitor)
-
onPlayerDamage Source The source of this event is the player who was damaged. addEventHandler( "onPlayerDamage", root, function (attacker) if (attacker and attacker:getType("player") and attacker:getWeapon() == 23) then if (attacker:getData("Venda:Police.Job")) then if (source:getWantedLevel() == 0) then return addNotification(attacker, "Essa pessoa não está com nível de procurado!", "error"); elseif (not Boxs["Markers"]["Create"]["Vehicle"][attacker]) then return addNotification(attacker, "Nenhuma viatura encontrada para levar o sujeito!", "error"); end if (attacker:getHealth() >= 31) then setElementVisibleTo(Boxs["Markers"]["Create"]["Jail"], attacker, true); attacker:setAnimation("ped","CAR_dead_LHS"); attacker:attach(Boxs["Markers"]["Create"]["Vehicle"][attacker], 0.2, -1.5, 0, 0, 0, 90); addNotification(source, "Tu acabas-te de ser algemado e preso, espera ser encaminhado para a cadeia.", "info"); addNotification(attacker, "Tu prendes-te uma pessoa! Leva-a até ao departamento (Sirenes Azuis)", "info"); end end end end )
-
local zones = {} function GrHabilit(Elemento) if Elemento and getElementData(source,"colGr") then if getElementModel(Elemento) ~= 78 then if getElementType(Elemento) == "player" or getElementType(Elemento) == "ped" then setPedOnFire(Elemento,true) elseif getElementType(Elemento) == "vehicle" then --this to not blow his bike XD setElementHealth(Elemento, 200) end end end end addEventHandler("onColShapeHit",getRootElement(),GrHabilit) function fireon (thePlayer) if getElementModel(thePlayer) == 78 then local x, y, z = getElementPosition (thePlayer) Fogo[4] = createObject(TabeladeFogo[ math.random( 1,#TabeladeFogo ) ], x, y, z) setElementCollisionsEnabled(Fogo[4], false) exports.bone_attach:attachElementToBone (Fogo[4], thePlayer, 8, -0, 0, -0.3, -125, 0, 0) zones[thePlayer] = createColCuboid(x, y, z, 3.1827392578125, 3.8387451171875, 2.4195971488953) attachElements(zones[thePlayer],thePlayer,0,0,0) setElementData(zones[thePlayer],"colGr",true) -- to burn who ever get near him outputChatBox ( "#FFFF00Power #00FF00Revenge Fire ON", thePlayer, 0, 255, 0, true ) end end addCommandHandler ("fireon", fireon) function fireoff (player) if getElementModel(player) == 78 then if ( zones[player] ~= false ) then -- check if player has burn zone destroyElement ( zones[player] ) -- destroy the burn zone destroyElement(Fogo[4]) --destroy the fire shape outputChatBox ( "#FFFF00Power #00FF00Revenge Fire OFF", player, 0, 255, 0, true ) end end end addCommandHandler ("fireoff", fireoff) i didn't test it , but try and if there problem tell me ^^
-
i won't by guieditor .... i want add them by using math but idk how This test code will draw 12 rectangle one next one !! i want it draw the rectangle in 4 lines and every line has 3 rectangle , so 3x4=12 !! any one can help me ? local test = { {"aaaaa",100}, {"xxx",100}, {"qqq",100}, {"dsqd",100}, {"dsqdqsd",100}, {"dsqdqsd",100}, {"dsqdqsd",100}, {"dsqdqsd",100}, {"dqsdsqd",100}, {"dsqdqsdsqd",100}, {"dsqdqsdqs",100}, {"dsqdqsdq",100}, --12 } addEventHandler("onClientRender", root, for i, v in ipairs (items) do dxDrawRectangle ( 500+i*50,400,50,50 tocolor ( 0, 0, 0, 150 ) ) end end)
-
Hello ! as you can see in the photo , drawing rectangles in 4 lines and max of rectangle by line are 6 i just want know how to draw the rectangles like that for example like in the image 4 lines & max by line 6 sorry for bad explaining
-
staff asslick for admin + lairs omg haha mtasa://51.255.215.248:23226 this the main and has opened since 2017 and majd scammer + betrayed then he's saying to ppl i'm scammer lol dude
-
check wiki https://wiki.multitheftauto.com/wiki/Scripting_Introduction
-
urban fixed it for u , it's will work , thx urban :v i forget it , bcs i was typing too faster
-
function getPserial (player,cmd) local serial = getPlayerSerial(player) local db = dbPoll( dbQuery(connection,"SELECT * FROM accounts WHERE serial = ?", serial), -1 ) for i, row (db) do return outputChatBox("Serial Found") end return outputChatBox("Serial Not Found") end addCommandHandler("getserial") this will work , try it
-
A shared script ?? wooow is it's open source from CSG Owner ? No , so it's stolen resources or leaked
-
[RPG/Multimode] SAEG:RPG 1.0 [ENGLISH]
Oussema replied to [SAEG]Wicked's topic in Servers to play on
Ye leaked come visit us now and see if leaked or no ofc stolen from you or ....... -
leaked from your ass i think go check SAEG then say that stuff
-
restarting server will make nothing different because after some hours and when much players enter server the lag and cpu usage will back to same so i buy new powerfull vps ?
-
if my scripts using much cpu usage and i can't fix it ! , what should i do ?? should i buy new vps ??? if yes ! suggest me good vps hosting
-
outputChatBox something for people who has "Admin" as elementData?
Oussema replied to TrickyTommy's topic in Scripting
function sendMessageToAdmins(msg) for i, admin in pairs (getElementsByType("player")) do if getElementData (admin, "Admin") then outputChatBox ("ADMIN Message: ".. msg, admin) end end end -
lol man i'm not unwilling to learn :v Hhhhh i just want know where parts of colors in scoreboard and i'll do it by my self ... i know all scripting rules so no need to start talking like that -___- if you will say to me where parts colors in scoreboard tell me if you won't np .. i'm sure there some one know where parts color in scoreboard i'll say it once again i can do it by my self but i just want know where is the part of colors in scoreboard nothing more .. i won't any one give me code or somthing like that
-
..... i know that ! but i asked about somthing idk even where the part of colors in scoreboard hard to edit not your own script and all know that sir