Jump to content

HoLsTeN

Members
  • Posts

    226
  • Joined

  • Last visited

Everything posted by HoLsTeN

  1. I Mean like in freeroam speed but here not free jast this what i want plead help me
  2. i jast test it is not work i want help !!!
  3. hi all i want to make script for fast move or fast speed you buy speed to be fast this code for Example addEvent("fast", true) addEventHandler("fast", getRootElement(), function() if ( getPlayerMoney (source) >= 5000 ) then takePlayerMoney(source, 5000) SetElmanetSpeed (score , 3) outputChatBox("now you are faster", source, 255, 255, 0, true) else outputChatBox("Not enough money.", source, 255, 0, 0, true) end end ) i dont know the proplem pleas help
  4. Thank you solid i make it like that addEvent("Repair", true) addEventHandler("Repair", getRootElement(), function() if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 500 ) then takePlayerMoney(source, 500) fixVehicle(getPedOccupiedVehicle(source)) triggerClientEvent("play_shop_sound",getRootElement()) outputChatBox("Vehicle Successfully Fixed", source, 255, 255, 0, true) else outputChatBox("Not enough money.", source, 255, 0, 0, true) end else outputChatBox("You are not in a vehicle", source, 255, 0, 0, true) end end ) and it is work but i dont know if all player in server can here it but thank you agine
  5. hi all i want to make code for if i buy anything from the shop play sound for Warning and all player in server Hear that can Any one help me here this is my code in server side i dont think we need cilent side addEvent("Repair", true) addEventHandler("Repair", getRootElement(), function() if isPedInVehicle(source) then if ( getPlayerMoney (source) >= 500 ) then takePlayerMoney(source, 500) fixVehicle(getPedOccupiedVehicle(source)) local sound = playSound("DontHaveTime.mp3") setSoundVolume(sound, 2.5) outputChatBox("Vehicle Successfully Fixed", source, 255, 255, 0, true) else outputChatBox("Not enough money.", source, 255, 0, 0, true) end else outputChatBox("You are not in a vehicle", source, 255, 0, 0, true) end end )
  6. i jast copy and but here i forgit see now and help me ><
  7. hi all i have Problem here my gui is not show i dont know why ??? plz tell me the Problem the Image not show i dont know why ??? local localPlayer = getLocalPlayer ( ) taplWindow = guiCreateWindow(220,223,429,316,"shop panel",false) tabPanel = guiCreateTabPanel(13,74,401,233,false,taplWindow) tab5 = guiCreateTab("shop",tabPanel) weapGrid = guiCreateGridList(19,108,154,193,false,tab5) guiGridListSetSelectionMode(weapGrid,0) weapColumn = guiGridListAddColumn(weapGrid,"Weapon",0.2) costColumn = guiGridListAddColumn(weapGrid,"$",0.2) weapButton = guiCreateButton(236,324,151,203,"Buy Weapon",false,tab5) local weapons = {{46,150},{22,250},{23,250},{24,300},{31,350},{30,350},{29,375},{25,400},{32,400},{33,400},{28,450},{26,450},{9,450},{27,500},{34,750},{4,2000}} for i,v in ipairs (weapons) do local itemName = getWeaponNameFromID (v[1]) local row = guiGridListAddRow (weapGrid) guiGridListSetItemText (weapGrid, row, 1, itemName, false, true) guiGridListSetItemText (weapGrid, row, 2, tostring(v[2]), false, true) end guiSetAlpha(weapGrid,1) Flip = guiCreateButton(167,48,62,19,"2500 $",false,tab5) Nitro = guiCreateButton(246,48,62,19,"2000 $",false,tab5) Repair = guiCreateButton(327,48,62,19,"3500 $",false,tab5) Invisible = guiCreateButton(169,107,62,19,"20000 $",false,tab5) Barrel = guiCreateButton(248,107,62,19,"15000 $",false,tab5) smoke = guiCreateButton(329,107,62,19,"20000 $",false,tab5) soon1 = guiCreateButton(170,168,62,19,"sooon",false,tab5) soon2 = guiCreateButton(250,167,62,19,"sooon",false,tab5) GUIEditor_Image[1] = guiCreateStaticImage(165,5,64,37,"images/shruk.png",false,tab5) GUIEditor_Image[2] = guiCreateStaticImage(242,9,70,32,"images/shruk1.png",false,tab5) GUIEditor_Image[3] = guiCreateStaticImage(330,10,68,30,"images/shruk2.png",false,tab5) GUIEditor_Image[4] = guiCreateStaticImage(164,74,72,30,"images/shruk3.png",false,tab5) GUIEditor_Image[5] = guiCreateStaticImage(245,73,73,31,"images/shruk4.png",false,tab5) GUIEditor_Image[6] = guiCreateStaticImage(332,74,69,30,"images/shruk5.png",false,tab5) GUIEditor_Image[7] = guiCreateStaticImage(166,131,66,34,"images/shruk6.png",false,tab5) GUIEditor_Image[8] = guiCreateStaticImage(249,131,68,34,"images/shruk7.png",false,tab5) GUIEditor_Label[1] = guiCreateLabel(231,188,162,17,"This Mode by k!ng-OF-sn!per",false,tab5) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",false) tab3 = guiCreateTab("Share money",tabPanel) GUIEditor_Grid[2] = guiCreateGridList(7,9,152,195,false,tab3) guiGridListSetSelectionMode(GUIEditor_Grid[2],2) guiGridListAddColumn(GUIEditor_Grid[2],"player",0.2) Send_massege = guiCreateButton(316,78,70,36,"::Send::",false,tab3) playerNameLabel = guiCreateLabel(190,16,107,26,"player name :",false,tab3) guiLabelSetColor(playerNameLabel,255,255,255) guiLabelSetVerticalAlign(playerNameLabel,"top") guiLabelSetHorizontalAlign(playerNameLabel,"left",false) amountLabel = guiCreateLabel(190,65,107,26,"amunt :",false,tab3) guiLabelSetColor(amountLabel,255,255,255) guiLabelSetVerticalAlign(amountLabel,"top") guiLabelSetHorizontalAlign(amountLabel,"left",false) playerNameEdit = guiCreateEdit(185,35,167,28,"",false,tab3) guiEditSetReadOnly(playerNameEdit,true) amountEdit = guiCreateEdit(188,83,109,29,"",false,tab3) guiEditSetMaxLength(amountEdit,5) function setGUI ( ) selectedRow, selectedCol = guiGridListGetSelectedItem( playerGridList ) gridPlayerName = guiGridListGetItemText( playerGridList, selectedRow, selectedCol ) guiSetText ( playerNameEdit, gridPlayerName ) end function onGuiClick (button, state, absoluteX, absoluteY) if (source == Flip) then triggerServerEvent ("buyFlip", getLocalPlayer()) elseif (source == Nitro) then triggerServerEvent ("buyNitro", getLocalPlayer()) elseif (source == GodMode) then triggerServerEvent ("buyGodMode", getLocalPlayer()) elseif (source == Repair) then triggerServerEvent ("buyRepair", getLocalPlayer()) elseif (source == Health) then triggerServerEvent ("buyHealth", getLocalPlayer()) elseif (source == Invisible) then triggerServerEvent ("buyInvisible", getLocalPlayer()) elseif (source == Barrel) then triggerServerEvent ("buyBarrel", getLocalPlayer()) elseif (source == sendMoneyButton) then playerNick = guiGetText ( playerNameEdit ) amount = guiGetText ( amountEdit ) triggerServerEvent ("sendMoney", getLocalPlayer(), playerNick, amount) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) function ToggletaplMenu() if (guiGetVisible(taplWindow) == true) then guiSetVisible(taplWindow, false) showCursor(false) else guiSetVisible(taplWindow, true) showCursor(true) playerGridList = guiCreateGridList(19,108,154,193,false,tab3) playersColumn = guiGridListAddColumn(playerGridList,"Players",0.85) guiGridListSetSelectionMode(playerGridList,2) for id, plaItem in ipairs(getElementsByType("player")) do row = guiGridListAddRow ( playerGridList ) guiGridListSetItemText ( playerGridList, row, playersColumn, getPlayerName ( plaItem ), false, false ) end bindKey("F2","down",ToggletaplMenu) outputChatBox("This Script By ||Castillo||",255,255,0) outputChatBox("Press F2 To Open ||BaseMode Panel|| !!!",0,255,0) function refreshStats() if guiGetVisible(taplWindow,true) then guiSetText(moneyLabel,"You have Money: $"..getPlayerMoney (getLocalPlayer())) else guiSetText(moneyLabel,"Money: You no have any Money") end end addEventHandler("onClientRender", getRootElement(), refreshStats) function onClientWeapBuy (button, state, absoluteX, absoluteYe) if (source == weapButton) then guiSetVisible (taplWindow, false) showCursor (false) if (guiGridListGetSelectedItem (weapGrid)) then local itemName = guiGridListGetItemText (weapGrid, guiGridListGetSelectedItem (weapGrid), 1) local itemID = getWeaponIDFromName (itemName) local itemCost = guiGridListGetItemText (weapGrid, guiGridListGetSelectedItem (weapGrid), 2) triggerServerEvent ("weapBuy", getLocalPlayer(), itemID, itemCost, itemName) end end end addEventHandler ("onClientGUIClick", weapButton, onClientWeapBuy) function guiClick (button, state, absoluteX, absoluteY) if (source == Flip) then guiSetVisible (taplWindow, false) showCursor (false) elseif (source == Nitro) then guiSetVisible (taplWindow, false) showCursor (false) elseif (source == Repair) then guiSetVisible (taplWindow, false) showCursor (false) elseif (source == Invisible) then guiSetVisible (taplWindow, false) showCursor (false) elseif (source == Health) then guiSetVisible (taplWindow, false) showCursor (false) elseif (source == Barrel) then guiSetVisible (taplWindow, false) showCursor (false) elseif (source == sendMoneyButton) then guiSetVisible (taplWindow, false) showCursor (false) end end addEventHandler ("onClientGUIClick", getRootElement(), guiClick) I EDIT THE SCRIPT IT IS WAS BY Castillo SORRY Castillo I DONT SAY TO YOU I WANT EDIT THE SCRIPT ><
  8. I edit script for mar and i add a for buy flip and fix and godmode did i need to but anather server side ????
  9. hi all Can I but 2 server side in 1 script ???? this is my best webside <3 help me plz
  10. HoLsTeN

    on car crate

    i make like what you say but it is not work
  11. HoLsTeN

    on car crate

    I have a problem When THE PLAYER DIE IN BASEMODE BETA 3 HE CAN created Vehicle in the map and i cant know who created the Vehicle like this img and now i want but script to show who is created the Vehicle now i think it is and clear to know what i mean
  12. HoLsTeN

    on car crate

    IT IS not work plz help help
  13. HoLsTeN

    on car crate

    addCommandHandler("car", function (player, command, id) outputChatBox("Player "..getPlayerName(player).." created a vehicle ("..id..")", getRootElement(), 255, 255, 0) end ) DID I NEED A SERVER SIDE OR ANY Other COMMAND ????
  14. HoLsTeN

    on car crate

    back this is my code function onplayerCreateVehicle outputChatBox("car create by ..getPlayerName(playerSource), playerSource) ",255,255,0) addCommandHandler ( "createvehicle", onplayerCreateVehicle ) sorry i know the code s rong but i am bad i want you help in the script and you will not sea my face
  15. HoLsTeN

    on car crate

    I mean, when any one crate car Will appear in the chat box who crate the car sorry for my bad english
  16. HoLsTeN

    on car crate

    in my server When the player die in basemode he can make car When he use this comand /car 422 this is the Problem i want you help me or any somenoe to crate the script i am hard becose i am bad in the scripts
  17. HoLsTeN

    on car crate

    hi all i have Problem In my server for basemode3 When Player die he can crate a car i want to make script To appear in the chatbox who crate the car to i kick him plz
  18. Again hi all i make this gui but in the server it is not show no eror plzz see and help me function gui ( ) window = guiCreateWindow (0,316,353,283, "king-OF-sniper", true ) guiWindowSetSizable ( window, false ) panel = guiCreateTabPanel (9,19,335,255, true, window ) weapon = guiCreateTab( "Shop", panel ) sendtap = guiCreateTab( "Send money", panel ) welcome = guiCreateLabel (147,339,69, "Welcome "..getPlayerName ( getLocalPlayer () ), true, window ) money = guiCreateLabel (256,341,68,15, "your money $"..getPlayerMoney ( source ), true, window ) guiCreateStaticImage(120,95,214,133, "image.png", false, sendtap ) guiCreateLabel (173,4,75,20, "Player:", true, sendtap ) guiCreateLabel (170,33,75,20, "Money:", true, sendtap ) guiCreateLabel ( 0.3, 0.05, 0.8, 0.12, "In shop you can buy weapons!!", true, weapon ) guiCreateLabel ( 0.21, 0.05, 0.8, 0.12, "here you can send your money to other players!!", true, sendtap ) editBox1 = guiCreateEdit(212,4,117,25, "", true, sendtap ) editBox2 = guiCreateEdit(212,30,117,25, "", true, sendtap ) send = guiCreateButton (234,61,65,24, "Send!", true, sendtap ) hp = guiCreateButton (1,2,97,52, "HP ---> $1000", true, weapon ) armor = guiCreateButton (0,60,97,52, "Armor ---> $1000", true, weapon ) sniper = guiCreateButton (0,118,97,52, "Sniper ---> $800", true, weapon ) tec9 = guiCreateButton (0,175,97,52, "tec-9 ---> $3500", true, weapon ) m4 = guiCreateButton (117,3,97,52, "M4 ---> $700", true, weapon ) ak47 = guiCreateButton (116,61,97,52, "Ak47 ---> $600", true, weapon ) molotov = guiCreateButton (116,120,97,52, "Molotov ---> $15000", true, weapon ) camera = guiCreateButton (116,176,97,52, "Camera ---> $100", true, weapon ) bindKey ( "F6", "down", show_gui ) addEventHandler ( "onClientGUIClick", hp, hp1, false ) addEventHandler ( "onClientGUIClick", armor, armor1, false ) addEventHandler ( "onClientGUIClick", sniper, sniper1, false ) addEventHandler ( "onClientGUIClick", tec9, tec91, false ) addEventHandler ( "onClientGUIClick", m4, m41, false ) addEventHandler ( "onClientGUIClick", ak47, ak471, false ) addEventHandler ( "onClientGUIClick", molotov, molotov1, false ) addEventHandler ( "onClientGUIClick", camera, camera1, false ) addEventHandler ( "onClientGUIClick", send, send1, false ) end addEventHandler ( "onClientResourceStart", getResourceRootElement ( getThisResource() ), gui ) -------------- function show_gui ( ) guiSetText ( welcome, "Welcome "..getPlayerName ( getLocalPlayer () ) ) guiSetText ( money, "your money $"..getPlayerMoney ( source ) ) if ( guiGetVisible ( window ) == true ) then guiSetVisible ( window, false ) showCursor ( false ) guiGridListRemoveColumn ( playerList, column ) guiSetVisible ( playerList, false ) else guiSetVisible ( window, true ) showCursor ( true ) playerList = guiCreateGridList (2,3,117,227, true, sendtap ) column = guiGridListAddColumn( playerList, "Players Names", 0.85 ) for id, playeritem in ipairs(getElementsByType("player")) do row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ), false, false ) end addEventHandler( "onClientGUIDoubleClick", playerList, wew, false ) end end function close_gui ( ) showCursor ( false ) guiSetVisible ( window, false ) end addEventHandler ( "onClientResourceStart", getRootElement(), close_gui ) --------------- function wew ( ) selectedRow, selectedCol = guiGridListGetSelectedItem( playerList ) playerName = guiGridListGetItemText( playerList, selectedRow, selectedCol ) guiSetText ( editBox1, playerName ) end --------------- function hp1 ( ) triggerServerEvent ( "onHP", getLocalPlayer() ) end function armor1 ( ) triggerServerEvent ( "onArmor", getLocalPlayer() ) end function sniper1 ( ) triggerServerEvent ( "onSniper", getLocalPlayer() ) end function tec91 ( ) triggerServerEvent ( "onTec9", getLocalPlayer() ) end function m41 ( ) triggerServerEvent ( "onM4", getLocalPlayer() ) end function ak471 ( ) triggerServerEvent ( "onAk47", getLocalPlayer() ) end function molotov1 ( ) triggerServerEvent ( "onMolotov", getLocalPlayer() ) end function camera1 ( ) triggerServerEvent ( "onCamera", getLocalPlayer() ) end function send1 ( ) eee = guiGetText ( editBox1 ) ddd = guiGetText ( editBox2 ) triggerServerEvent ( "onSend", getLocalPlayer(), eee, ddd ) end i make this gui ^^ plz help ><
  19. ok sorry tapl Another question\ what is good to make guieditor NAME OF PROGRAME
  20. i dont saay this is my script i say someone give me the script and i am edit !!!!!!!!!!!!!!!!!!! you know
  21. local localPlayer = getLocalPlayer ( ) Window = guiCreateWindow(0,4,432,251,"",false) guiSetVisible(Window,false) tabPanel = guiCreateTabPanel(9,24,414,218,false,Window) --------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------- Script By sn!per ------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------- Script By BaSeL SN!PER ------------------------------------------------------------------ --------------------------------------------------------------------------------------------------------------------------------------------- tab2 = guiCreateTab("| |~|| Lights Color by k!ng-of-sn!per||~| |",tabPanel) ck = guiCreateButton(0.4,0.8,0.4,0.11,"Close",true,tab2) -------------------------Red----------------------------------------------- redBar2 = guiCreateScrollBar( 0.3, 0.2, 0.65, 0.1, true, true, tab2) colorRedLabel = guiCreateLabel(0.1,0.2,0.2,0.1,"|| RED ||",true,tab2) guiLabelSetColor(colorRedLabel,255,12,15) -------------------------Green----------------------------------------------- greenBar2 = guiCreateScrollBar( 0.3, 0.4, 0.65, 0.1, true, true, tab2) colorGreenLabel = guiCreateLabel(0.1,0.4,0.2,0.1,"|| GREEN ||",true,tab2) guiLabelSetColor(colorGreenLabel,0,255,0) -------------------------Blue----------------------------------------------- blueBar2 = guiCreateScrollBar( 0.3, 0.6, 0.65, 0.1, true, true, tab2) colorBlueLabel = guiCreateLabel(0.1,0.6,0.2,0.1,"|| BLUE ||",true,tab2) guiLabelSetColor(colorBlueLabel,0,150,255) --------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------- Script By SN!PER ------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------- function ToggleMenu() if (guiGetVisible(Window) == true) then guiSetVisible(Window, false) showCursor(false) else guiSetVisible(Window, true) showCursor(true) local sound = playSound("Color-KSA/Color-KSA.wav") setSoundVolume(sound, 2.5) end end function guiClick (button, state, absoluteX, absoluteY) if (source == cl) then guiSetVisible (Window, false) showCursor (false) end end addEventHandler ("onClientGUIClick", getRootElement(), guiClick) function guiClick (button, state, absoluteX, absoluteY) if (source == ck) then guiSetVisible (Window, false) showCursor (false) end end addEventHandler ("onClientGUIClick", getRootElement(), guiClick) bindKey("F6","down",ToggleMenu) outputChatBox("||~|| لـتـغـيـر لــون الــزنـــن F6 أضــغــط",255,0,0) outputChatBox("by: king-of-sn!per ",0,500,0) function nameColor() if source == redBar1 or source == greenBar1 or source == blueBar1 then triggerServerEvent("nameTagColorChange",getLocalPlayer(),(guiScrollBarGetScrollPosition(redBar1)*2.55),(guiScrollBarGetScrollPosition(greenBar1)*2.55),(guiScrollBarGetScrollPosition(blueBar1)*2.55)) guiLabelSetColor(labelColor,(guiScrollBarGetScrollPosition(redBar1)*2.55),(guiScrollBarGetScrollPosition(greenBar1)*2.55),(guiScrollBarGetScrollPosition(blueBar1)*2.55)) end end addEventHandler("onClientGUIScroll",getRootElement(),nameColor) function lightColor() if source == redBar2 or source == greenBar2 or source == blueBar2 then local car = getPedOccupiedVehicle(getLocalPlayer()) setVehicleHeadLightColor(car,(guiScrollBarGetScrollPosition(redBar2)*2.55),(guiScrollBarGetScrollPosition(greenBar2)*2.55),(guiScrollBarGetScrollPosition(blueBar2)*2.55)) end end addEventHandler("onClientGUIScroll",getRootElement(),lightColor)
×
×
  • Create New...