Jump to content

MR.S3D

Members
  • Posts

    732
  • Joined

  • Last visited

Everything posted by MR.S3D

  1. debugscript 3 الأخ عناد اشوفك كل مره تكتب وهو مبتدىء ماراح يفهم من اول مره يعني للي عنده خبره بيفهم debugscript 3 تقبل مروري البسيط
  2. I transpire Al3grab to get it
  3. فكره حلوه بس ما انصح فيها كل واحد عنده مشاكل مع مبرمج ثاني وخصوصا تابل مشاكله كثيره وتبيهم يتجمعون مع بعض ومشكور عالفكره الحلوه
  4. MR.S3D

    SOLVED

    in meta.xml Server Side or Client ? 'server side
  5. [solved]
  6. Instead of waiting someone for give you a ready code, keep trying to make the code working by yourself. i try to make now its work thanks you
  7. any help?????
  8. not work try this : guiLabelSetColor ( elem, wnd.align, math.random(0, 255), math.random(0, 255), math.random(0, 255) ) still not work
  9. not work
  10. hi guys how to set lable color in the freeroam gamemode this label {'lbl', text='welcom'},
  11. Solidsnake14 this work thanks you so much
  12. how to make this?
  13. not work
  14. hi guys this my code server side local marker1 = createMarker(1525.3000488281,2834.3999023438,23.39999961853,"checkpoint",20,255,255,255,255) function marker(player) if (source == marker1) then local players = getElementsByType ( "player" ) timer = setTimer (function (player) if isPedInVehicle(player) then local veh = getPedOccupiedVehicle(player) if veh then destroyElement(veh) end end end ,1000,0, player) end end addEventHandler ("onMarkerHit",getRootElement(),marker) addEventHandler ("onMarkerLeave",getRootElement(),function() if (source == marker1) then if isTimer(timer) then killTimer(timer) end end end) this work onMarkerHit but when i leave the marker my Vehicle destroyed agin why ? please some one help me
  15. [unsuitable post removed]
  16. try this tab5 = guiCreateTab("Share money",GUIEditor_TabPanel[1]) playerNameEdit = guiCreateEdit(157,26,168,29,"",false,tab5) guiEditSetReadOnly(playerNameEdit,true) playerNameLabel = guiCreateLabel(197,6,73,15,"Player Name:",false,tab5) guiLabelSetColor(playerNameLabel,255,255,255) guiLabelSetVerticalAlign(playerNameLabel,"top") guiLabelSetHorizontalAlign(playerNameLabel,"left",false) amountEdit = guiCreateEdit(158,84,168,29,"",false,tab5) guiEditSetMaxLength(amountEdit,8) amountLabel = guiCreateLabel(196,60,73,15,"amount:",false,tab5) guiLabelSetColor(amountLabel,255,255,255) guiLabelSetVerticalAlign(amountLabel,"top") guiLabelSetHorizontalAlign(amountLabel,"left",false) sendMoneyButton = guiCreateButton(193,134,84,39,"SEND",false,tab5) function onGuiClick (button, state, absoluteX, absoluteY) elseif (source == sendMoneyButton) then playerNick = guiGetText ( playerNameEdit ) amount = guiGetText ( amountEdit ) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClick) function onUpdateMoneyplayersList() playerName = getPlayerName ( getLocalPlayer() ) playerList = guiCreateGridList(4,7,153,390,false,tap5) guiGridListSetSelectionMode(playerList,2) local column = guiGridListAddColumn( playerList, "Player", 0.85 ) if ( column ) then for id, playeritem in ipairs(getElementsByType("player")) do local row = guiGridListAddRow ( playerList ) guiGridListSetItemText ( playerList, row, column, getPlayerName ( playeritem ), false, false ) end addEventHandler ( "onClientGUIClick", playerList, click ) end end addEventHandler ( "onClientResourceStart", getRootElement(), onUpdateMoneyplayersList) addEventHandler("onClientPlayerJoin", getRootElement(), onUpdateMoneyplayersList) addEventHandler("onClientPlayerQuit", getRootElement(), onUpdateMoneyplayersList) addEventHandler("onClientPlayerChangeNick", getRootElement(), onUpdateMoneyplayersList) function click () local playerName = guiGridListGetItemText ( playerList, guiGridListGetSelectedItem ( playerList ), 1 ) guiSetText ( playerNameEdit, playerName ) end server side local rootElement = getRootElement() addEvent("sendMoney", true) addEventHandler("sendMoney", rootElement, function (playerNick, amount) local cash = getPlayerMoney(source) if (tonumber(amount)>0) then if (cash>=tonumber(amount)) then toWho = getPlayerFromName(playerNick) if (toWho ~= false) then givePlayerMoney(toWho,amount) takePlayerMoney(source,amount) name = getPlayerName(source) outputChatBox("You've given money amount of: " .. amount .. "$ to: " .. playerNick,source,255,255,150) outputChatBox(name .. " has given you money amount of: " .. amount .. "$!",toWho,255,255,245) else outputChatBox("Player did not exist!",source,255,0,0) end else outputChatBox("Insufficient founds!",source,255,0,0) end else outputChatBox("Amount must to be greater than 0!",source,255,0,0) end end) this should work
  17. thank you so much you a good man good work
  18. hi all i make new shop panal but i cant compile it this error plz tell me how to fix and give me just example sory for my bad enlglish
  19. ok I know making gui but please help me to make code thank you
  20. Solidsnake14 thank you
  21. Benxamix2 .... Merci beaucoup Pour m'aider
  22. J'ai besoin juste au moment où le client cliquez-il envoyer voter Comme quand il commande en bref Consle F8 Merci à tous
  23. Thank you very much And sorry for wasting your time But I want to just help to make a script Sorry for my bad English
  24. plz help me to make some code sory thak you
×
×
  • Create New...