SA-Symon

Members
  • Content Count

    105
  • Joined

  • Last visited

Community Reputation

4 Neutral

1 Follower

About SA-Symon

  • Rank
    Punk-@ss B*tch
  • Birthday 15/02/2000

Details

  • Gang
    SAUG:RPG
  • Location
    Egypt
  • Occupation
    Scripter/Mapper
  • Interests
    N/A

Recent Profile Visitors

691 profile views
  1. SA-Symon

    [RPG]SAUG:RPG |3.5| [English]

    I had never join this server Before So idk which inside it To copy anything from it Thanks For Reply to Our main topic of SAUG
  2. SA-Symon

    [RPG]SAUG:RPG |3.5| [English]

    Hello everybody, We have made our new veriosn Since our server has been STOPPED i Think all Players Suggestion has been ADDED General News: Jobs: Events: Bug Fixes: Staff Logs: Check Staff Logs/Roster on saugrpg.tk New Developer Has been joined with us ScreenShots: Server Recored : Still growing i hope to see u ingame
  3. SA-Symon

    Armour Help

    Thanks u alot i have finished it
  4. SA-Symon

    Mask Bug

    K Here for helpnot asking about have or no
  5. SA-Symon

    Menu Bug

    local sx, sy = guiGetScreenSize() local rx, ry = sx/1920, sy/1080 local selectedPlayer = false function isCursorInPosition(rectX, rectY, rectW, rectH) if isCursorShowing() then local cursorX, cursorY = getCursorPosition() local cursorX, cursorY = cursorX * sx, cursorY * sy return (cursorX >= rectX and cursorX <= rectX+rectW) and (cursorY >= rectY and cursorY <= rectY+rectH) else return false end end setTimer(function() if isElement(selectedPlayer) then local x, y, z = getElementPosition(localPlayer) local px, py, pz = getElementPosition(selectedPlayer) local dist = getDistanceBetweenPoints3D(x, y, z, px, py, pz) if dist > 5 then selectedPlayer = false end end end, 500, 0) local screenW, screenH = guiGetScreenSize() addEventHandler("onClientRender", getRootElement(), function() if isElement(selectedPlayer) then dxDrawLine(624, 136, 765, 137, tocolor(255, 255, 255, 255), 2, false) dxDrawLine(624, 236, 764, 236, tocolor(255, 255, 255, 255), 2, false) dxDrawLine(624, 137, 623, 238, tocolor(255, 255, 255, 255), 2, false) dxDrawLine(765, 137, 764, 237, tocolor(255, 255, 255, 255), 2, false) dxDrawLine(624, 169, 765, 169, tocolor(255, 255, 255, 255), 2, false) dxDrawLine(624, 202, 765, 202, tocolor(255, 255, 255, 255), 2, false) dxDrawText("Menu", 657, 106, 785, 137, tocolor(255, 255, 255, 255), 2.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Revive", 663, 140, 749, 164, tocolor(255, 255, 255, 255), 0.90, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Trade", 663, 174, 749, 198, tocolor(255, 255, 255, 255), 0.90, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Invite", 663, 208, 749, 232, tocolor(255, 255, 255, 255), 0.90, "pricedown", "left", "top", false, false, false, false, false) if isCursorInPosition(663, 140, 749, 164) then dxDrawText("Revive", 663, 140, 749, 164, tocolor(255, 255, 255, 255), 0.90, "pricedown", "left", "top", false, false, false, false, false) end if isCursorInPosition(663, 174, 749, 198) then dxDrawText("Trade", 663, 174, 749, 198, tocolor(255, 255, 255, 255), 0.90, "pricedown", "left", "top", false, false, false, false, false) end if isCursorInPosition(663, 208, 749, 232) then dxDrawText("Invite", 663, 208, 749, 232, tocolor(255, 255, 255, 255), 0.90, "pricedown", "left", "top", false, false, false, false, false) end end end) ---ped = createPed(217,-1967.25732, -435.42059, 35.33594,80) ped = createPed(217,133.37, -96.9, 1.43,80) local screenW, screenH = guiGetScreenSize() addEventHandler("onClientClick", getRootElement(), function(button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement) if (state == "up") then if (button == "right") then if (clickedElement) and (getElementType(clickedElement) == "player") and clickedElement ~= localPlayer then cX, cY = absoluteX, absoluteY selectedPlayer = clickedElement else selectedPlayer = false end elseif (button == "left") then if isElement(selectedPlayer) and isCursorInPosition(663, 140, 749, 164) and getElementData(selectedPlayer,"KArr") then triggerServerEvent("up1", resourceRoot, selectedPlayer) selectedPlayer = false end if isElement(selectedPlayer) and isCursorInPosition(663, 208, 749, 232) then triggerServerEvent("clanInvitePlayer1",resourceRoot,getElementData(localPlayer,"Clan"),selectedPlayer) selectedPlayer = false end end end end) Server addEvent("up1",true) addEventHandler("up1", getRootElement( ), function( button, state, player ) if button == "left" and state == "down" then if getElementType( source ) == "player" then if player == source then return end if getElementData(source,"KArr") then local x, y, z = getElementPosition( player ) local x1, y1, z1 = getElementPosition( source ) local distance = getDistanceBetweenPoints3D( x, y, z, x1, y1, z1 ) if distance < 2 and (getTeamName(getPlayerTeam(player)) == "Gangster" or getTeamName(getPlayerTeam(player)) == "Terrorists" ) then removeEventHandler("onPlayerQuit", source, onQuit) setPedAnimation(player, "medic", "cpr") setElementData (player,"antibug" , true) triggerClientEvent ( source,"showit",source ) triggerClientEvent ( player,"showit",player ) if isTimer(proTimerx[source]) then killTimer(proTimerx[source]) end if isTimer(kArrest[source]) then killTimer(kArrest[source]) end end end end end end) idk why it's doesn't work it's work when player open menu and click revive player get revive
  6. SA-Symon

    HeadShot Bugged

    not working
  7. SA-Symon

    Armour Help

    getting armour working fine and everything but i want add when player open inventory to use armour when he start use it this Gui shown for player WEARING ARMOUR (0 To 100%)
  8. SA-Symon

    Armour Help

    I didn't understand u Can u explain to me, Please ?
  9. SA-Symon

    Armour Help

    function loadd() dxDrawLine(471 - 1, 358 - 1, 471 - 1, 411, tocolor(254, 254, 254, 254), 1, false) dxDrawLine(895, 358 - 1, 471 - 1, 358 - 1, tocolor(254, 254, 254, 254), 1, false) dxDrawLine(471 - 1, 411, 895, 411, tocolor(254, 254, 254, 254), 1, false) dxDrawLine(895, 411, 895, 358 - 1, tocolor(254, 254, 254, 254), 1, false) dxDrawRectangle(471, 358, 424, 53, tocolor(0, 0, 0, 182), false) --------- DX dxDrawRectangle(476, 360, 415, 47, tocolor(5, 76, 183, 144), false) --------progressbar=100 dxDrawRectangle(476, 360, 5, 47, tocolor(5, 76, 183, 144), false)-----progressbar=0 dxDrawText("WEARING ARMOUR (0%)", 486, 368, 871, 411, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) end addEventHandler("onClientRender", root, loadd) local unlerp = function(from,to,lerp) return (lerp-from)/(to-from) end function dxDrawProgressBar( startX, startY, width, height, progress, color, backColor ) local progress = math.max( 0, (math.min( 100, progress) ) ) local wBar = width*.18 for i = 0, 4 do --back local startPos = (wBar*i + (width*.025)*i) + startX dxDrawRectangle( startPos, startY, wBar, height, backColor ) --progress local eInterval = (i*20) local localProgress = math.min( 1, unlerp( eInterval, eInterval + 20, progress ) ) if localProgress > 0 then dxDrawRectangle( startPos, startY, wBar*localProgress, height, color ) end end end i need when i use armour it's shown Progress count from 0 to 100 setTimer(addArmour, 5000, 1)
  10. SA-Symon

    Mask Bug

    Still same problem
  11. SA-Symon

    Mask Bug

    Yes as soxxml said
  12. SA-Symon

    Mask Bug

    maskTable = {} yelekTable = {} maskTable["Devil"] = {1512, 1, 90,100000} maskTable["Vendetta"] = {1455, 1, 90,100000} maskTable["Darth"] = {1484, 1, 90,100000} maskTable["Horse"] = {1485, 1, 90,1450000} maskTable["Gas mask"] = {1487, 1, 90,1450000} maskTable["Cow Bow"] = {1543, 1, 90,1950000} maskTable["Zombie"] = {1544, 1, 90,100000} maskTable["Vampire"] = {1666, 1, 90,950000} maskTable["skull Face"] = {1667, 1, 90,950000} maskTable["Raccoon"] = {1668, 1, 180,100000} maskTable["Owl"] = {1950, 1, 180,950000} maskTable["Cat"] = {1951, 1, 180,1450000} maskTable["Bag"] = {1551, 1, 90,10000} maskTable["Dog"] = {1546, 1, 90,950000} maskTable["Baby"] = {1669, 1, 90,1450000} maskTable["Monster"] = {1853, 1, 90,100000} maskTable["Monster Space"] = {1854, 1, 90,1450000} maskTable["Hate"] = {1855, 1, 180,100000} obje = {} yelek = {} function maske_kaldir() if obje[source] then destroyElement(obje[source]) end end addEvent("removemask",true) addEventHandler("removemask", root, maske_kaldir) function maske_kaldir(pay) local money = getPlayerMoney(source) if (money > tonumber (pay)) then takePlayerMoney (source,(pay)) setElementData (source ,"bought",true) setElementData (localPlayer ,"testing" ,false) else setElementData (localPlayer ,"testing" ,true) outputChatBox (" You dont have Money " ,source ,255,0,0) yelek_kaldir() triggerClientEvent (source, "onGreeting",source ) end end addEvent("cost",true) addEventHandler("cost", root, maske_kaldir) function yelek_kaldir() if yelek[source] then destroyElement(yelek[source]) end end addCommandHandler("destroy", yelek_kaldir) addEvent("removeyelek",true) addEventHandler("removeyelek", root, yelek_kaldir) function maske_ekle(objeid,bodyattach,zROT) obje[source] = createObject ( objeid, 0, 0, 0, 0, 0, 0 ) exports.bone_attach:attachElementToBone(obje[source],source,bodyattach,0,0,-0.61,0,0,zROT) setElementData (source,"masks",objeid) setElementData (source,"bodp",bodyattach) setElementData (source,"rot",zROT) end addEvent("setmask",true) addEventHandler("setmask", root, maske_ekle) function yelek_ekle(name) if yelek[source] then destroyElement(yelek[source]) yelek[source] = nil end local objeid = yelekTable[name][1] local bodyattach = yelekTable[name][2] local zROT = yelekTable[name][3] yelek[source] = createObject ( objeid, 0, 0, 0, 0, 0, 0 ) exports.bone_attach:attachElementToBone(yelek[source],source,3,-0.03,0,-0.55,-0.5,2,90) end addEvent("setyelek",true) addEventHandler("setyelek", root, yelek_ekle) function saveInfo(name) if not getElementData(source, "testing" ) then local account = getPlayerAccount(source) local walking = getElementData(source,"masks") local body = getElementData (source,"body") local rot = getElementData (source,"rot") local bought = getElementData (source,"bought") setAccountData(account,"masks",walking) setAccountData(account,"bodp",body) setAccountData(account,"rot",rot) setAccountData(account,"bought",bought) setElementData(source,"rot",rot) setElementData(source,"masks",walking) setElementData(source,"bodp",body) end end addEventHandler("onPlayerQuit",root,saveInfo) function this (name) if not getElementData(source, "testing" ) then local account = getPlayerAccount(source) local walking = getElementData(source,"masks") local body = getElementData (source,"bodp") local rot = getElementData (source,"rot") setAccountData(account,"masks",walking) setAccountData(account,"bodp",body) setAccountData(account,"rot",rot) setElementData(source,"rot",rot) setElementData(source,"masks",walking) setElementData(source,"bodp",body) end end addEventHandler( "onResourceStop", resourceRoot,this) function displayLoadedRes (name) if not getElementData(source, "testing" ) then local account = getPlayerAccount(source) local walking = getAccountData(account,"masks") local body = getAccountData(account,"bodp") local rot = getAccountData(account,"rot") setElementData(source,"rot",rot) setElementData(source,"masks",walking) setElementData(source,"bodp",body) obje[source] = createObject (walking, 0, 0, 0, 0, 0, 0 ) exports.bone_attach:attachElementToBone(obje[source],source,body,0,0,-0.61,0,0,rot) end end addEventHandler ( "onResourceStart", getRootElement(), displayLoadedRes ) function getInfo(name) if not getElementData(source, "testing" ) then local account = getPlayerAccount(source) local walking = getAccountData(account,"masks") local body = getAccountData(account,"bodp") local rot = getAccountData(account,"rot") setAccountData(account,"masks",walking) setAccountData(account,"bodp",body) setAccountData(account,"rot",rot) setElementData(source,"rot",rot) setElementData(source,"masks",walking) setElementData(source,"bodp",body) obje[source] = createObject (walking, 0, 0, 0, 0, 0, 0 ) exports.bone_attach:attachElementToBone(obje[source],source,body,0,0,-0.61,0,0,rot) end end addEventHandler("onPlayerSpawn",root,getInfo) function getInfo(per,cur,name) if not getElementData(source, "testing" ) then local walking = getAccountData(cur,"masks") local body = getAccountData(cur,"bodp") local rot = getAccountData(cur,"rot") setElementData(source,"rot",rot) setElementData(source,"masks",walking) setElementData(source,"bodp",body) setElementData(source,"loggedin",true) obje[source] = createObject (walking, 0, 0, 0, 0, 0, 0 ) exports.bone_attach:attachElementToBone(obje[source],source,body,0,0,-0.61,0,0,rot) end end addEventHandler("onPlayerWasted",root,getInfo) function itback (name) if not getElementData(source, "testing" ) then end end addCommandHandler ( "reco",itback) function back(name) if not getElementData(source, "testing" ) then local account = getPlayerAccount(source) local walking = getAccountData(account,"masks") local body = getAccountData(account,"bodp") local rot = getAccountData(account,"rot") local bought = getAccountData(account,"bought") setElementData(source,"rot",rot) setElementData(source,"masks",walking) setElementData(source,"bodp",body) setElementData(source,"bought",bought) setElementData(source,"loggedin",true) obje[source] = createObject (walking, 0, 0, 0, 0, 0, 0 ) exports.bone_attach:attachElementToBone(obje[source],source,body,0,0,-0.61,0,0,rot) end end addEventHandler("onPlayerLogin", root,back) when Player recc mask removed !
  13. SA-Symon

    HeadShot Bugged

    function MakePlayerHeadshot( attacker, weapon, bodypart, loss ) if getElementType ( attacker ) == "ped" then if bodypart == 9 then triggerEvent( "onPlayerHeadshot", source, attacker, weapon, loss ) setPedHeadless ( source, true ) killPed( source, attacker, weapon, bodypart ) setTimer( BackUp, 900, 1, source ) end end end function MakeHeadshot( source, attacker, weapon, loss ) triggerEvent( "onPlayerHeadshot", source, attacker, weapon, loss ) killPed( source, attacker, weapon, 9 ) setPedHeadless ( source, true ) setTimer( BackUp, 900, 1, source ) end function BackUp( source ) if getElementType ( source ) == "player" then setPedHeadless ( source, false ) end end function outputHeadshotIcon (killer, weapon, bodypart) if bodypart == 9 then cancelEvent() local r2,g2,b2 = getTeamColor ( getPlayerTeam( killer ) ) local r1,g1,b1 = getTeamColor ( getPlayerTeam( source ) ) exports.killmessages:outputMessage ( {getPlayerName(killer),{"padding",width=3},{"icon",id=weapon},{"padding",width=3},{"icon",id=256},{"padding",width=3},{"color",r=r1,g=g1,b=b1},getPlayerName(source) }, getRootElement(),r2,g2,b2) end end addEvent ( "onServerHeadshot", true ) addEventHandler( "onPlayerDamage", getRootElement(), MakePlayerHeadshot ) addEventHandler( "onPlayerKillMessage", getRootElement(), outputHeadshotIcon ) addEventHandler( "onServerHeadshot", getRootElement(), MakeHeadshot ) it's has bug : if player have Armour it's just damge and when damge removed not making head shot it's just damge i need it if player have Armour it's auto removed when player make headshot and when kill player haven't armour make his hp 0 auto
  14. SA-Symon

    Jail Bug

    i tried on PlayQuit / Login but didn't fix can i request u to help me, Please ?
  15. SA-Symon

    Jail Bug

    function jailPlayer(player, jtype, jfrom, jtime, reason, relid) if(isElement(player) and getElementType(player) == "player" and type(jtype) == "number" and isElement(jfrom) and getElementType(jfrom) == "player" and type(jtime) == "number" and jtime > 0 and jtype >= 0 and jtype <= 3) then px, py, pz = getElementPosition(player) if(relid ~= nil) then relid = relid else relid = findNearestPD(player) end if(jtype == 2 or jtype == 1) then jtime = math.floor(jtime) else if(getElementData(player, "viplevel") == 2) then jtime = math.floor(jtime-(jtime*0.1)) elseif(getElementData(player, "viplevel") == 3) then jtime = math.floor(jtime-(jtime*0.25)) elseif(getElementData(player, "viplevel") == 4) then jtime = math.floor(jtime-(jtime*0.5)) else jtime = math.floor(jtime) end end if(getElementData(player, "isInSpawner")) then setElementData(player, "isInSpawner", false) triggerClientEvent(player, "onPlayerLeaveSpawner", player) end if(getElementData(player, "isInOSpawner")) then setElementData(player, "isInOSpawner", false) triggerClientEvent(player, "hideOwnedVehicles", player) end if(isPedInVehicle(player)) then removePedFromVehicle(player) end if(doesPedHaveJetPack(player)) then removePedJetPack(player) end if(law[getTeamName(getPlayerTeam(player))]) then setPlayerTeam(player, getTeamFromName("Unemployed")) setElementData(player, "Job", "Unemployed") setElementData(player, "Job Rank", "None") setElementModel(player, 0) end setElementInterior(player, 0) setElementDimension(player, 33 ) local nm = math.random(#positions) setElementPosition(player, positions[nm][1] or 1573.71, positions[nm][2] or -1641.84,positions[nm][3] or 73.46) setElementData(player, "Jailed", "yes") triggerClientEvent(player, "deleteTurfInfo", player) setElementData(player, "JailTime", jtime) setElementData(player, "JailType", jtype) setElementData(player, "ReleaseID", relid) setElementData(player, "jailFrom",jfrom) triggerClientEvent(player,"onClientPlayerJailed",player,jfrom) triggerEvent("onPlayerJailed",player,jfrom) setPedWeaponSlot(player, 0) toggleControl(player, "fire", false) toggleControl(player, "action", false) toggleControl(player, "next_weapon", false) toggleControl(player, "previous_weapon", false) toggleControl(player, "jump", false) if(jtype == 2 and player ~= jfrom) then if(reason == nil or reason == "" or reason == " ") then reason = "No reason" end outputChatBox("* "..getPlayerName(jfrom).." jailed "..getPlayerName(player).." for "..jtime.." seconds ("..reason..")", getRootElement(), 255, 0, 0) setElementPosition(player,1573.71, -1641.84, 73.46) local cxdata = exports.SAUGecho:getPlayerAccountData(player,"adminjailed") if cxdata == nil or cxdata == 0 or cxdata == false then cxdata = 0 end exports.SAUGecho:setPlayerAccountData(player,"adminjailed",cxdata+1) local cxdata = exports.SAUGecho:getPlayerAccountData(player,"adminjailed") if cxdata == 1 then exports.SAUGucp:givePlayerAch(player,9) end end triggerClientEvent(player, "showJailTime", player, jtime) return true end return false end addEvent("ArrestP", true) addEventHandler("ArrestP", getRootElement(), jailPlayer) it's has bug when player reconnect unjailed