Jump to content

ZeyadGTX

Members
  • Posts

    451
  • Joined

  • Last visited

Everything posted by ZeyadGTX

  1. ZeyadGTX

    Hydra SKin

    i did i want link for Hydra.dff
  2. ZeyadGTX

    Hydra SKin

    Hey Guys . i got New Hydra Skin But the problem i just have the TXD file and i don't have the DFF to replace it with the Old Hydra , what i can do ? what script should i use or do you have the default DFF For Hydra ID 520 and i have hydra.txd file
  3. ZeyadGTX

    /me

    ??? addEventHandler ( "onPlayerChat", root, function ( msg, msgType ) if msgType == 1 then cancelEvent () end end )
  4. ZeyadGTX

    /me

    yes it does "Ss" name="me" version="1.0.0" type="script"/>
  5. ZeyadGTX

    Login

    it works but when i login the image don't remove
  6. ZeyadGTX

    /me

    i still can use /me message addEventHandler("onPlayerCommand",root, function(cmd) if cmd == "me" then cancelEvent() end end)
  7. ZeyadGTX

    /me

    Hey Guys i would like to disable /me message , need help what to use ?? addEventHandler ( "onPlayerChat", root, function ( msg, msgType ) if msgType ==== 1 then cancelEvent () end end )
  8. function RGBToHex(red, green, blue, alpha) if((red < 0 or red > 255 or green < 0 or green > 255 or blue < 0 or blue > 255) or (alpha and (alpha < 0 or alpha > 255))) then return nil end if(alpha) then return string.format("#%.2X%.2X%.2X%.2X", red,green,blue,alpha) else return string.format("#%.2X%.2X%.2X", red,green,blue) end end local blip = {} local randomColor = { [1] = {255,255,255}, [2] = {255,0,255}, [3] = {0,255,0} } addEventHandler("onPlayerLogin", root, function () if not isElement(blip[source]) then blip[source] = createBlipAttachedTo(source) end local theTeam = getPlayerTeam(source) if theTeam then local r, g, b = getTeamColor(theTeam) setPlayerNametagColor(source, r, g, b) setBlipColor(blip[source], r, g, b, 255) setPlayerName(source,getPlayerName(source):gsub('#%x%x%x%x%x%x',RGBToHex(r,g,b))) else outputChatBox("YOU HAVE NO TEAM", source) rr,gg,bb = unpack(randomColor[math.random(#randomColor)]) setBlipColor(blip[source], rr,gg,bb,255) setPlayerName(source,getPlayerName(source):gsub('#%x%x%x%x%x%x',RGBToHex(rr,gg,bb))) setPlayerNametagColor(source, rr,gg,bb) end end ) addEventHandler("onPlayerQuit", root, function() if isElement(blip[source]) then destroyElement(blip[source]) end end )
  9. ZeyadGTX

    Nametag

    Hey i use this Nametag which Draw pic Next To the Nametag of the player but i have problem the pic doesn't change , I want him If Admin Then The Image draws and file exists in :Reputation/class/classicon_admin.png if he is just player then :reputation/class/classicon_player.png, because iam ew at scripting so iam Noob local imageSize = dxGetFontHeight ( textscale*NAMETAG_TEXTSIZE, srfont ) if getElementData(player, "Level") and fileExists ( ":reputation/class/classicon_gm.png" ) then dxDrawImage ( sx - math.max(nameWidth/2, teamWidth/2) - imageSize - 1*scale, sy - imageSize, imageSize, imageSize, ":reputation/class/classicon_gm.png" ) end
  10. ZeyadGTX

    Team Chat

    thanks , it works good but i have another question . i hear the sound when i send message i want to hear it when others send
  11. ZeyadGTX

    Team Chat

    Server side addEventHandler('onPlayerChat', root, function ( msg, msgType ) if ( msgType == 2 ) then triggerClientEvent(source, 'Play', source ) end end ) ---ServerSide addEvent('Play', true ) addEventHandler('Play', root, function ( ) local sound = playSound("chat.mp3" ) setSoundVolume(sound, 1.0) end ) Client function playSonido() local sound = playSound("chat.mp3",false) setSoundVolume(sound, 0.9) end addEvent("sonido",true) addEventHandler("sonido",getRootElement(),playSonido)
  12. ZeyadGTX

    Team Chat

    Look "0" description="" info="mod" type="misc" version="1.0.5" />
  13. ZeyadGTX

    Size

    Oh Okay its fixed thanks Castillo
  14. ZeyadGTX

    Size

    Shit , the whole Client File Is Crashed
  15. ZeyadGTX

    Size

    Can you edit it ? dxDrawText("FPS: "..getElementData(getLocalPlayer(), "FPS"), (8/1024)*sWidth, (740/768)*sHeight, (130/1024)*sWidth, (130/768)*sHeight, tocolor (255, 255, 255, 255), (0.4/1366)*sWidth,(0.4/768)*sHeight,"bankgothic","left","top",false,false,false,false)
  16. ZeyadGTX

    Login

    I use this Login is there way to add image behind it ? Client wdwLogin_Pannel = {} tabPannel_Main = {} tab_Login = {} blackLoginScreen = true blackScreenTime = 5 GuestEnable = true function open_log_reg_pannel() if not(isElement(wdwLogin_Pannel)) then if blackLoginScreen == true then fadeCamera(false,0,0,0,0) end local sWidth,sHeight = guiGetScreenSize() local Width,Height = 473,284 local X = (sWidth/2) - (Width/2) local Y = (sHeight/2) - (Height/2) wdwLogin_Pannel = guiCreateWindow(X,Y,Width,Height,"Spider-Roam",false) guiWindowSetSizable(wdwLogin_Pannel,false) tabPannel_Main = guiCreateTabPanel(9,23,455,251,false,wdwLogin_Pannel) tab_Login = guiCreateTab("Login",tabPannel_Main) lbl_Login = guiCreateLabel(103,72,42,19,"Login:",false,tab_Login) guiLabelSetVerticalAlign(lbl_Login,"center") guiLabelSetHorizontalAlign(lbl_Login,"right",false) guiSetFont(lbl_Login,"default-bold-small") edit_Login = guiCreateEdit(156,72,169,23,"",false,tab_Login) edit_password = guiCreateEdit(156,106,169,23,"",false,tab_Login) guiEditSetMaxLength ( edit_Login,22) guiEditSetMaxLength ( edit_password,22) guiEditSetMasked ( edit_password, true ) lbl_Password = guiCreateLabel(48,106,96,19,"Password:",false,tab_Login) guiLabelSetVerticalAlign(lbl_Password,"center") guiLabelSetHorizontalAlign(lbl_Password,"right",false) guiSetFont(lbl_Password,"default-bold-small") lbl_top_info = guiCreateLabel(0,0,473,35,"Visit our FB page - [url=http://www.facebook.com/Spiderroam]www.facebook.com/Spiderroam[/url]",false,tab_Login) guiLabelSetColor(lbl_top_info,255,255,255) guiLabelSetVerticalAlign(lbl_top_info,"center") guiLabelSetHorizontalAlign(lbl_top_info,"center",false) lbl_about_legth = guiCreateLabel(142,42,184,18,"Max Length: 22 symbols",false,tab_Login) guiLabelSetColor(lbl_about_legth,255,255,255) guiLabelSetVerticalAlign(lbl_about_legth,"center") guiLabelSetHorizontalAlign(lbl_about_legth,"center",false) checkbox_save = guiCreateCheckBox(329,110,100,20,"(Save)",false,false,tab_Login) guiSetFont(checkbox_save,"default-small") btn_Login = guiCreateButton(164,162,147,41,"Login",false,tab_Login) guiSetFont(btn_Login,"default-bold-small") login_tab_error_msg = guiCreateLabel(31,131,419,25,"Error_login_tab",false,tab_Login) guiLabelSetColor(login_tab_error_msg,255,0,0) guiLabelSetVerticalAlign(login_tab_error_msg,"center") guiLabelSetHorizontalAlign(login_tab_error_msg,"center",false) guiSetFont(login_tab_error_msg,"default-bold-small") if GuestEnable == true then btnGuest = guiCreateButton(29,168,94,32,"Play as Guest",false,tab_Login) guiSetFont(btnGuest,"default-small") guiSetVisible(btnGuest,true) else if isElement(btnGuest) then guiSetVisible(btnGuest,false) end btnGuest = nil end tab_Register = guiCreateTab("Register",tabPannel_Main) lbl_account_name = guiCreateLabel(43,39,119,21,"Account Name:",false,tab_Register) guiLabelSetVerticalAlign(lbl_account_name,"center") guiLabelSetHorizontalAlign(lbl_account_name,"right",false) guiSetFont(lbl_account_name,"default-bold-small") lbl_reg_top_info = guiCreateLabel(66,5,364,31,"Please fill in all fields. Don't use any special characters.",false,tab_Register) guiLabelSetColor(lbl_reg_top_info,255,255,255) guiLabelSetVerticalAlign(lbl_reg_top_info,"center") guiLabelSetHorizontalAlign(lbl_reg_top_info,"center",false) edit_account_name = guiCreateEdit(172,40,176,23,"",false,tab_Register) guiEditSetMaxLength ( edit_account_name,25) lbl__reg_tab_password = guiCreateLabel(43,71,119,21,"Password:",false,tab_Register) guiLabelSetVerticalAlign(lbl__reg_tab_password,"center") guiLabelSetHorizontalAlign(lbl__reg_tab_password,"right",false) guiSetFont(lbl__reg_tab_password,"default-bold-small") edit__reg_tab_password = guiCreateEdit(172,71,176,23,"",false,tab_Register) guiEditSetMaxLength ( edit__reg_tab_password,25) edit__reg_tab_Repassword = guiCreateEdit(172,102,176,23,"",false,tab_Register) guiEditSetMaxLength ( edit__reg_tab_Repassword,25) lvl_reg_tab_Repassword = guiCreateLabel(43,102,119,21,"Repeat password:",false,tab_Register) guiLabelSetVerticalAlign(lvl_reg_tab_Repassword,"center") guiLabelSetHorizontalAlign(lvl_reg_tab_Repassword,"right",false) guiSetFont(lvl_reg_tab_Repassword,"default-bold-small") btn_reg_tab_register = guiCreateButton(153,161,174,42,"Confirm & register!",false,tab_Register) guiSetFont(btn_reg_tab_register,"default-bold-small") reg_tab_error_msg = guiCreateLabel(66,129,364,31,"Error_reg_ttab",false,tab_Register) guiLabelSetColor(reg_tab_error_msg,255,20,0) guiLabelSetVerticalAlign(reg_tab_error_msg,"center") guiLabelSetHorizontalAlign(reg_tab_error_msg,"center",false) guiSetFont(reg_tab_error_msg,"default-bold-small") guiSetVisible(wdwLogin_Pannel,true) -- guiSetInputMode("no_binds_when_editing") showCursor(true) guiSetText(reg_tab_error_msg, "") guiSetText(login_tab_error_msg, "") local username, password = loadLoginFromXML() if not( username == "" or password == "") then guiCheckBoxSetSelected ( checkbox_save, true ) guiSetText ( edit_Login, tostring(username)) guiSetText ( edit_password, tostring(password)) else guiCheckBoxSetSelected ( checkbox_save, false ) guiSetText ( edit_Login, tostring(username)) guiSetText ( edit_password, tostring(password)) end addEventHandler("onClientGUIClick",btn_Login,onClickBtnLogin) addEventHandler("onClientGUIClick",btn_reg_tab_register,onClickBtnRegister) if GuestEnable == true then addEventHandler("onClientGUIClick",btnGuest,onClickGuest) end -- else -- destroyElement(wdwLogin_Pannel) -- guiSetInputMode("no_binds_when_editing") -- wdwLogin_Pannel = nil -- showCursor(false) end end function start_cl_resource() open_log_reg_pannel() end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),start_cl_resource) addCommandHandler("loginpanel", start_cl_resource) function loadLoginFromXML() local xml_save_log_File = xmlLoadFile ("files/xml/userdata.xml") if not xml_save_log_File then xml_save_log_File = xmlCreateFile("files/xml/userdata.xml", "login") end local usernameNode = xmlFindChild (xml_save_log_File, "username", 0) local passwordNode = xmlFindChild (xml_save_log_File, "password", 0) if usernameNode and passwordNode then return xmlNodeGetValue(usernameNode), xmlNodeGetValue(passwordNode) else return "", "" end
  17. ZeyadGTX

    Size

    Hello , i use this to Add FPS to my Hud it works perfectly but the problem its small , is there any thing to make it bigger size ?? dxDrawText("FPS: "..getElementData(getLocalPlayer(), "FPS"), (8/1024)*sWidth, (740/768)*sHeight, (130/1024)*sWidth, (130/768)*sHeight, tocolor (255, 255, 255, 255), (0.4/1366)*sWidth,(0.4/768)*sHeight,"bankgothic","left","top",false,false,false,false)
  18. ZeyadGTX

    Team Chat

    "" description="teamsoundT" info="mod" type="misc" version="1.0.5" />
  19. ZeyadGTX

    Team Chat

    Not Working , i added this to server side addEventHandler('onPlayerChat', root, function ( msg, msgType ) if ( msgType == 2 ) then triggerClientEvent(source, 'Play', source ) end end ) ---ServerSide addEvent('Play', true ) addEventHandler('Play', root, function ( ) local sound = playSound("chat.mp3" ) setSoundVolume(sound, 1.0) end )
  20. ZeyadGTX

    Team Chat

    Hey Guys , i have script which make sound in chat , but i have something i want this sounds Plays onTeamChat only because it plays on Any Chat Client function playSonido() local sound = playSound("chat.mp3",false) setSoundVolume(sound, 0.9) end addEvent("sonido",true) addEventHandler("sonido",getRootElement(),playSonido) Server function chat (thePlayer) triggerClientEvent("sonido",getRootElement()) end addEventHandler ( "onPlayerChat", getRootElement(), chat )
  21. ZeyadGTX

    [BUG]

    Guys i found bug in Clothes when i change CJ clothes i can't remove it i selected watch in EXtra but when i double click it it shoud be removed idk why ! , and i use /removeclothes the clothes doesn't does some know why ?. or do you have /removeclothes command which allow me to remove all my clothes because that BUG?
  22. ZeyadGTX

    [Question]

    This Resource Works Perfectly
×
×
  • Create New...