Jump to content

Evil-Cod3r

Members
  • Posts

    370
  • Joined

  • Last visited

Everything posted by Evil-Cod3r

  1. SoldSnake one more thing my frind how can i make the Panel Show for admin only and if he Select Player and press 1 Play sound and if he press 2 Play another sound i have the sound but i need show the Panel for admin only and code Play Sound
  2. SoldSnake if i press Yes He type 2 times ? and if i press no he let me type my points is yes= can talk but 2 times ? no = talk team Chat Only not in noraml
  3. Castillo i want like Al3grab Say if i Select a Player and Press Yes Button then he can write in Normal chat if i Press No He Can write in Team Chat Only
  4. at least can some one give me the functions and events ?
  5. Please any one Al3grab i have made the windows what i dot next Help me to Made it Please
  6. ........ Fixed Thx
  7. is there other way Like an Gui Window ?
  8. this script use For Spar /Cw its Cancel the Type in NorMal Chat and let them Type in team Chat how to Make it Select 1 Form Red Team to talk in the Normal chat and Select 1 Form Blue Team To Talk in the Normal Chat and the Rest of Player Type in team Only
  9. ........ Fixed Thx
  10. Thx Tapl work
  11. Please Help Me TApl
  12. The Hide Work But when i died dosnt give me any weapons
  13. Some One Please
  14. Hi i have Select Weapons But every Time i died the Weapons Panel Show again i want if he Select His Weapons Save it and if he died the Weapons He Select return to him with out show the Panel lp = getLocalPlayer() rRoot = getResourceRootElement(getThisResource()) addEventHandler("onClientResourceStart",rRoot,function() triggerServerEvent("getData",lp,lp) end ) addEvent("sendData",true) addEventHandler("sendData",root,function(small,med,misc) if small and med and misc then smallGuns = small mediumGuns = med miscGuns = misc WCW = guiCreateWindow(367,244,570,233,"Please Choose Weapon",false) guiSetVisible (WCW, false) guiWindowSetSizable(WCW,false) guiWindowSetMovable(WCW,false) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(WCW,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(WCW,x,y,false) ButOK = guiCreateButton(18,207,256,19,"OK",false,WCW) ButC = guiCreateButton(290,207,256,19,"Cancel",false,WCW) guiBringToFront(ButC) guiBringToFront(ButOK) WCSmallGuns = guiCreateGridList(18,54,169,148,false,WCW) guiGridListSetSelectionMode(WCSmallGuns,0) local columnSG = guiGridListAddColumn( WCSmallGuns, "Small Guns", 0.55 ) local ammoSG = guiGridListAddColumn( WCSmallGuns, "Ammo", 0.20 ) if ( columnSG ) then for k,v in ipairs (smallGuns) do local jSG = guiGridListAddRow ( WCSmallGuns ) guiGridListSetItemText ( WCSmallGuns, jSG, columnSG,getWeaponNameFromID(v[1]), false, false ) guiGridListSetItemText ( WCSmallGuns, jSG, ammoSG,v[2], false, true ) end end WCMGuns = guiCreateGridList(198,53,169,148,false,WCW) guiGridListSetSelectionMode(WCMGuns,0) local columnMG = guiGridListAddColumn( WCMGuns, "Medium Guns", 0.55 ) local ammoMG = guiGridListAddColumn( WCMGuns, "Ammo", 0.20 ) if ( columnMG ) then for k,v in ipairs (mediumGuns) do local jSG = guiGridListAddRow ( WCMGuns ) guiGridListSetItemText ( WCMGuns, jSG, columnMG,getWeaponNameFromID(v[1]), false, false ) guiGridListSetItemText ( WCMGuns, jSG, ammoMG,v[2], false, true ) end end WCMiscGuns = guiCreateGridList(378,52,169,148,false,WCW) guiGridListSetSelectionMode(WCMiscGuns,0) local columnMSG = guiGridListAddColumn( WCMiscGuns, "Misc. Guns", 0.55 ) local ammoMSG = guiGridListAddColumn( WCMiscGuns, "Ammo", 0.20 ) if ( columnMSG ) then for k,v in ipairs (miscGuns) do local jSG = guiGridListAddRow ( WCMiscGuns ) guiGridListSetItemText ( WCMiscGuns, jSG, columnMSG,getWeaponNameFromID(v[1]), false, false ) guiGridListSetItemText ( WCMiscGuns, jSG, ammoMSG,v[2], false, true ) end end function ShowWC() getVisible = guiGetVisible (WCW) if (getVisible == true) then guiSetVisible (WCW , false) guiSetVisible (ButOK , false) guiSetVisible (ButC , false) showCursor (false) end if (getVisible == false) then guiSetVisible (WCW , true) guiSetVisible (ButOK , true) guiSetVisible (ButC , true) showCursor (true) end end addEvent("ShowWC",true) addEventHandler("ShowWC",root,ShowWC) function onClick (button, state, absoluteX, absoluteY) if ( source == ButOK ) then triggerServerEvent("TakeAll",lp,lp) wep = guiGridListGetItemText (WCSmallGuns, guiGridListGetSelectedItem (WCSmallGuns), 1) ammo = guiGridListGetItemText (WCSmallGuns, guiGridListGetSelectedItem (WCSmallGuns), 2) if wep and ammo then triggerServerEvent("GiveGun",lp,lp,getWeaponIDFromName(wep),ammo) end wep = guiGridListGetItemText (WCMGuns, guiGridListGetSelectedItem (WCMGuns), 1) ammo = guiGridListGetItemText (WCMGuns, guiGridListGetSelectedItem (WCMGuns), 2) if wep and ammo then triggerServerEvent("GiveGun",lp,lp,getWeaponIDFromName(wep),ammo) end wep = guiGridListGetItemText (WCMiscGuns, guiGridListGetSelectedItem (WCMiscGuns), 1) ammo = guiGridListGetItemText (WCMiscGuns, guiGridListGetSelectedItem (WCMiscGuns), 2) if wep and ammo then triggerServerEvent("GiveGun",lp,lp,getWeaponIDFromName(wep),ammo) end ShowWC() elseif ( source == ButC ) then ShowWC() end end addEventHandler ("onClientGUIClick", getRootElement(), onClick) end end ) setTimer(fileDelete,1000,1,"WC-C.lua") function getData(to) local file = xmlLoadFile("data.xml") small = {} med = {} misc = {} if file then for k,v in ipairs (xmlNodeGetChildren(xmlFindChild(file,"SmallGuns",0)))do local id = xmlNodeGetAttribute(v,"id") local ammo = xmlNodeGetAttribute(v,"ammo") table.insert(small, {id,ammo}) end for k,v in ipairs (xmlNodeGetChildren(xmlFindChild(file,"MediumGuns",0)))do local id = xmlNodeGetAttribute(v,"id") local ammo = xmlNodeGetAttribute(v,"ammo") table.insert(med, {id,ammo}) end for k,v in ipairs (xmlNodeGetChildren(xmlFindChild(file,"MiscGuns",0)))do local id = xmlNodeGetAttribute(v,"id") local ammo = xmlNodeGetAttribute(v,"ammo") table.insert(misc, {id,ammo}) end end triggerClientEvent(to,"sendData",to,small,med,misc) end addEvent("getData",true) addEventHandler("getData",root,getData) function TakeAll( Player ) takeAllWeapons(Player) end addEvent("TakeAll",true) addEventHandler("TakeAll",getRootElement(),TakeAll) function GiveGun( Player , Gun , Ammo ) if Gun and Ammo then giveWeapon(Player, Gun,Ammo) setPedWeaponSlot(Player, getSlotFromWeapon(Gun)) end end addEvent("GiveGun",true) addEventHandler("GiveGun",getRootElement(),GiveGun) function ShowWC(Player) triggerClientEvent(Player,"ShowWC",Player) end addEventHandler("onPlayerSpawn",root,function() ShowWC(source) addCommandHandler("gun",function(plr) ShowWC(plr) end ) setTimer(removeCommandHandler,1 * 60 * 1000 ,1, "gun") end)
  15. Look Befoure You Ask ! https://community.multitheftauto.com/index.php?p= ... ls&id=2240
  16. Try This setTimer(playSound,getSoundLength(currentSound)*50,50,random);
  17. is this well coded the client to ? or hide it from files ? or what it do ?
  18. yes By Using Txd Work Shop Link : http://www.thegtaplace.com/downloads/f7 ... rkshop-40b
  19. i think like this function damage () if getElementType == "object" then cancelEvent() end addEventHandler ( "onResourceStart", getRootElement(), damage)
  20. its alot of write script i have to learn first thx Man For Help
  21. God i hate FreeRoam Thx Kenix For Help Thx Alll P.S Its Possble to add anti-Flood for it if he type 5 time give him mute 10 sec ?
  22. its donst work at all see the img and iam using mta 1.1
  23. it dont work i chat its output dont cancelEvent i even try this function colouredChat ( message, theType ) if theType == 0 then cancelEvent() outputChatBox("You Cant Type in Here Type Team Chat Only",source,255,0,0) end addEventHandler( "onPlayerChat", getRootElement(), colouredChat)
  24. So it Be Like this ? function Extra (msg,msgType) if msgType ~= 2 then cancelEvent () outputChatBox("You Cant Type in Here Type Team Chat Only",source,255,255,0) end end addEventHandler( "onPlayerChat", getRootElement(), Extra) function mta () outputChatBox ( "#FF0000Anti-Chat #00FF00", getRootElement(), 255, 255, 255, true ) end addEventHandler ( "onResourceStart", getRootElement(), mta)
  25. Can You Explane Me Your Script xthepr0mise
×
×
  • Create New...