Jump to content

Annas

Members
  • Posts

    143
  • Joined

  • Last visited

Everything posted by Annas

  1. Please i need fully code. .. (& thx <3)
  2. where HERE ?
  3. Hello , i wish u understand my problem .. I just wanna to know my server members online names and stats(hours/ping) in my PHP file. I have a SMF forum (cst1.tk). i just do a PHP file into Public_html folder in SMF ftp. here's is it (cst1.tk/MTA/test.php) please help me ! , really i wish you understand me
  4. it's not work .. there is no "if Resource Start" ? , i mean , if i start the script so it make this all ..
  5. Hello community members, Just i need something , when a player in ACL group Name , it setElementData "something" , i tried to make this: SERVER SIDE function hitdbs(player) accName = getAccountName(getPlayerAccount(player)) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "DL1" )) then setElementData (player, "CSThit", "DL1") end if isObjectInACLGroup ("user."..accName, aclGetGroup ( "DL2" )) then setElementData (player, "CSThit", "DL2") end if isObjectInACLGroup ("user."..accName, aclGetGroup ( "DL3" )) then setElementData (player, "CSThit", "DL3") else setElementData (player, "CSThit", "None") end end end When a player in DL1 Acl group , i need this element data setted to him ("CSThit", "DL1") , and when a player DL2 ("CSThit", "DL2") and DL3 ("CSThit", "DL3") , but not work , please help me , i can explain more.. , and i need it if you enter exemple to acl DL1 , it added that element data ("CSThit", "DL1") and when i leave it it back to 0 ("CSThit", "None") Sorry for my bad english
  6. Hello , just i wanna when a player Die , Close the Panel. i use this: CLIENT SIDE: addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[3] = guiCreateWindow(165, 45, 861, 603, "PANEL", false) ) function gui (key,keyst) local bool = not guiGetVisible(GUIEditor.window[3]) if getElementInterior(localPlayer) ~= 0 then outputChatBox("You can't open store menu in other interior",255,0,0) return end if isPedDead(localPlayer) then outputChatBox("You can't open store menu when you are dead!",255,0,0) return end guiSetVisible(GUIEditor.window[3],bool) showCursor(bool) refresh() end bindKey ( "F1", "down", gui ) I do it , if you dead you cannot open the gui and if you are in interior , you cannor open the gui but i need it, if the gui is showed, it must be closed when u die, i mean if i click F1 and it shows, then i killed my self & let the panel showing, so the panel didnt destroyed. i tried to do this too CLIENT SIDE function detected(player) if isPedDead(player) then guiSetVisible(GUIEditor.window[3],false) showCursor(false) outputChatBox("Due To Abuse F1 Panel Destroyed",player,255,0,0) end (script working, but just i need the panel destroyed when i kill my self ) what is my problem ? ""press F1 => /kill (kill ped) => [[PANEL STILL]]"" i wish you understand my bad english
  7. my Friend gave it to me so ? its his and he doesn't need sorry we cant help leaked resources .
  8. Annas

    PLEASE HELP!!!

    Try this .. admingate = createObject(10841, -1641, -36.7998, 1, 0, 0, 135.03295) function gateOpen() moveObject(admingate, 2000, -1641, -36.7998, 5) end addCommandHandler("adminbo", gateOpen) --Command /adminbo to open gate function gateClose() moveObject( admingate, 2000, -1641, -36.7998, 1) end addCommandHandler("adminbc", gateClose)--Command /adminbc to close gate By Code's admingate = createObject([Object ID], [X], [Y], [Z], [Rotation.X], [Rotation.Y], [Rotation.Z]) function gateOpen() moveObject(admingate, [Object ID], [X], [Y], [Z]) end addCommandHandler("adminbo", gateOpen) --Command /adminbo to open gate function gateClose() moveObject( admingate, [Object ID], [X], [Y], [Z]) end addCommandHandler("adminbc", gateClose)--Command /adminbc to close gate ||Sorry For My BAd English||
  9. I Know this resource .. & it's not your's (only client) lol, now i no one able to help you because you have proved to us that you are not the owner of the script . Leacked resource.
  10. i have a RPG server , and i try to made a ACL GROUP NAMED 'Supporters" i try to make a chat for them (if you are in acl group "Supporters" then you can chat in it by pressing "./sup TEXT" and if you are not in acl group "Supporters" you cant see this chat .. i made this code but not working (members in acl supporter can talk with it) (WORKING) (normal members can see the supporter chat (HELP ME) i wish you understand me .. THE CODE : SERVER SIDE : function adminPrivateChat(plr, cmd, ...) local accName = getAccountName ( getPlayerAccount ( plr ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Supporters" ) ) then local message = table.concat({...}, " ") for index, players in pairs(getElementsByType("player")) do if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Supporters" ) ) then outputChatBox("#000000(CST Supporter) "..getPlayerName(plr).. ": #FFFFFF"..message, players, 255, 255, 255, true) end end end end
  11. thx , btw i make it by my self ./lock
  12. simple help , and thx .. i need a simple script when a player in acl group "Supporter" then outputchatbox "PLAYER NAME is available for help" i try to make this but idk why not work .. SERVER SIDE : function tagPlayer (player, command) local accName = getAccountName ( getPlayerAccount ( player ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Supporter" ) ) then outputChatBox( "Supporter " .. player .. " is available for help ", root, 255, 171, 1) end addCommandHandler( "helpsup", tagPlayer )
  13. It codes only work if you get a seasparrow and activate his weapon. not damaging. so how ? what's the functions or give me complete Code ..
  14. help me .. , i need be able to fight with the (Seasparrow) weapons .. , can any one add a new code to let the player damaged from (seasparrow) guns ..
  15. not work , i need it able to damage players when i fight with SeasParrow gun !
  16. i have big problem that's seasParrow didn't damaged players with the (Seasparrow Weapon) i try to make this but not work .. SERVER SIDE : local vehicles = { [ 447 ] = true, -- SEASPARROW ID } addEventHandler ( "onClientVehicleStartEnter", root, function ( thePlayer, seat ) if ( thePlayer == localPlayer ) then if ( vehicles [ getElementModel ( source ) ] ) then toggleControl ( "vehicle_fire", true ) toggleControl ( "vehicle_secondary_fire", true ) end end end )
  17. no no you dont understand ,, not when i enter a vehicle it take the money .. i need it when i FIRE with hydra missle it take the money .. HELP
  18. and the code ? , is it correct ??
  19. can any one help me pls ? i need when i fire with HYDRA it Take Player Money "5000" i try to make this but not work .. function takeHydra( thePlayer, seat ) if thePlayer == localPlayer then toggleControl ( "vehicle_fire", true ) toggleControl ( "vehicle_secondary_fire", true ) local model = getElementModel ( source ) if model == 520 then takePlayerMoney(thePlayer, 5000) end end end end addEventHandler("onClientVehicleEnter", getRootElement(), takeHydra)
  20. ye ik , but how to make it exported to the ADMIN PANEL ...(default admin panel "P")
  21. you create it ? stop lie pls -,- it made by me .. (and if you dont want help me , dont reply ....)
  22. CLIENT SIDE : REMOVED SERVER SIDE : REMOVED I SWEAR I MAKE THIS BY MY SELF , and i wanna make it work when i ban a player with P panel (default admin panel) it will showed this DxDraw with the BAN TIME and BAN REASON & WHO BAN YOU .. HELP ME PLS !!
  23. make this function per gui ? mean , exm i have 100 panel have memo i must add this function in all of them ? or add it one time in 1 place , then it will be fixed ?
  24. i have a big problem and i wish you help me in it when i go to any memo in any panel , then type in it (T / U / P , or any other bind ) it showed to me : T = Main U = Local P = admin panel i wanna when i type any thing in a memo , it not binded in the Chat , i wish you understand ..
  25. Try this it should work function changeSkin(oldModel, newModel) if (getElementType(source) == "player") then if (newModel == 0) then executeCommandHandler ("loadClothes", source) end end end addEventHandler("onElementModelChange", root, changeSkin) when i try it .. Not work i swear ... complete files !! Server.lua (SERVER SIDE) --[[ original script by iannas (iannas ben ahmed) --]] function saveClothes() local account = getPlayerAccount(source) if ( not isGuestAccount(account) ) and ( getElementModel(source) == 0 ) then local texture = {} local model = {} for i=0, 17, 1 do local clothesTexture, clothesModel = getPedClothes(source, i) if ( clothesTexture ~= false ) then table.insert(texture, clothesTexture) table.insert(model, clothesModel) else table.insert(texture, " ") table.insert(model, " ") end end local allTextures = table.concat(texture, ",") local allModels = table.concat(model, ",") outputDebugString("Clothessaver: Saved clothes") setAccountData(account, "Clothessaver:Texture", allTextures) setAccountData(account, "Clothessaver:Model", allModels) texture = {} model = {} end end addEventHandler("onPlayerQuit", getRootElement(), saveClothes) function setClothes() local account = getPlayerAccount(source) if ( not isGuestAccount(account) ) then local textureString = getAccountData(account, "Clothessaver:Texture") local modelString = getAccountData(account, "Clothessaver:Model") local textures = split(textureString, 44) local models = split(modelString, 44) for i=0, 17, 1 do if ( textures[i+1] ~= " " ) then addPedClothes(source, textures[i+1], models[i+1], i) end end exports.CSTtexts:output("Your CJ Clothes were added Back", source, 0, 255, 0, true) textures = {} models = {} end end addEventHandler("onPlayerLogin", getRootElement(), setClothes) function loadClothes(player) local account = getPlayerAccount(player) if ( not isGuestAccount(account) ) then local textureString = getAccountData(account, "Clothessaver:Texture") local modelString = getAccountData(account, "Clothessaver:Model") local textures = split(textureString, 44) local models = split(modelString, 44) for i=0, 17, 1 do if ( textures[i+1] ~= " " ) then addPedClothes(player, textures[i+1], models[i+1], i) end end exports.CSTtexts:output("Your CJ Clothes were added Back", player, 0, 255, 0, true) textures = {} models = {} else outputChatBox("Please login!", player, 255, 0, 0) end end addCommandHandler("loadClothes", loadClothes) function saveClothes(player) local account = getPlayerAccount(player) if ( not isGuestAccount(account) ) then if ( getElementModel(player) == 0 ) then local texture = {} local model = {} for i=0, 17, 1 do local clothesTexture, clothesModel = getPedClothes(player, i) if ( clothesTexture ~= false ) then table.insert(texture, clothesTexture) table.insert(model, clothesModel) else table.insert(texture, " ") table.insert(model, " ") end end local allTextures = table.concat(texture, ",") local allModels = table.concat(model, ",") outputDebugString("Clothessaver: Saved clothes") setAccountData(account, "Clothessaver:Texture", allTextures) setAccountData(account, "Clothessaver:Model", allModels) texture = {} model = {} else exports.CSTtexts:output("Your skin must be skin 0 (CJ Skin)", player, 255, 0, 0, true) end else outputChatBox("Please login!", player, 255, 0, 0) end end addCommandHandler("saveClothes", saveClothes) function changeSkin(oldModel, newModel) if (getElementType(source) == "player") then if (newModel == 0) then executeCommandHandler ("loadClothes", source) end end end addEventHandler("onElementModelChange", root, changeSkin) META.xml "iAnnAs" version="1.1" type="script" name="clothes saver" description="This resources saves the ped's clothes" /> when i reconnect with any other skin number and back the CJ (clothes not saved) but when i click ./loadClothes , clothes will back to the CJ skin when i wear it ..
×
×
  • Create New...