Jump to content

ALw7sH

Members
  • Posts

    1,165
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by ALw7sH

  1. You don't need these functions for what you wanna do loop all the players and check if they are inside your area (whatever is your area colship or marker) to get all the players use getElementsByType
  2. setPedStat setElementHealth setPedArmor
  3. بدون تفلسف الي مسوي يبي يطقطق ساعد الرجال اول بعدين طقطق حسين خطأ وانا اخطأت بس على الاقل حاولنا نساعد محد عارف كل شي بالبرمجه يعني مايحتاج تسوي نفسك الفاهم وتطقطق كلامي مو موجه لشخص محدد
  4. ALw7sH

    Help-me pls?

    What you are trying to do is removing the text on the girdlist and it's not being deleted because element created on client-side can't be deleted from server-side If you want to delete vehicle set the vehicle as data to the row using guiGridListSetItemData
  5. كود الي فوق تابل يسوي لوب وكود تابل مايسوي لوب اللوب له تأثير اقوا على الس بي يو غالباً
  6. مايحتاج تريقر لول addEventHandler("onClientGUIClick",root, function() if source == CHECK_BOX then for k,v in ipairs(getElementsByType("player")) do if v ~= localPlayer then guiCheckBoxSetSelected(CHECK_BOX,guiCheckBoxGetSelected(CHECK_BOX)) end end end end )
  7. مافيه أي صله بين localPlayer و source السورس موجود كلاينت وسيرفر في الايفتات بس وهو المصدر للأيفنت ومو لازم يكون لاعب ولوكال بلاير فقط كلاينت ومو شرط يكون في ايفنت هو يعبر عن اللاعب الي جالس يشغل السكربت او باختصار اللاعب الي شغال عنده السكربت
  8. If you mean the element data, doesn't matter he's registerd or not the data will be deleted
  9. The data will be deleted when the player left the server
  10. function onPlayerBuildAMiNe (itemName) setElementData(source,itemName,getElementData(source,itemName)-1) setPedAnimation (source,"BOMBER","BOM_Plant",-1, false, false, false, false) local source = source setTimer( function () local x,y,z = getElementPosition(source) local xr,yr,zr = getElementRotation(source) px, py, pz = getElementPosition(source) prot = getPedRotation(source) local offsetRot = math.rad(prot+90) local vx = px + 1 * math.cos(offsetRot) local vy = py + 1 * math.sin(offsetRot) local vz = pz + 2 local vrot = prot+90 -- tent = createObject(849,vx,vy,pz-0.75,xr,yr,vrot) tent = createObject(1225,vx,vy,pz-1.4,xr,yr,vrot) setObjectScale(tent,1) tentCol = createColSphere(x,y,z,2) addEventHandler("onColShapeHit",tentCol,explode) attachElements ( tentCol, tent, 0, 0, 0 ) setElementData(tentCol,"parent",tent) setElementData(tent,"parent",tentCol) setElementData(tentCol,"mine",true) triggerClientEvent(source,"refreshInventoryManual",source) end,1500,1) end addEvent("onPlayerBuildAMiNe",true) addEventHandler("onPlayerBuildAMiNe",getRootElement(),onPlayerBuildAMiNe) function explode() local x,y,z = getElementPosition(getElementData(source,"parent")) createExplosion(x,y,z,11) removeMine (getElementData(source,"parent")) end function removeMine (object) if getElementType(object) == "object" then local x,y,z = getElementPosition(getElementData(object,"parent")) local item,itemString = getItemTablePosition("Land Mine (Anti-Tank)") local itemPickup = createItemPickup(item,x,y,z+2,itemString) removeEventHandler("onColShapeHit",getElementData(object,"parent"),explode) destroyElement(getElementData(object,"parent")) destroyElement(object) end end addEvent("removeMine",true) addEventHandler("removeMine",getRootElement(),removeMine) Edit: If you have copied my code copy it again because i haven't notice that is the code serverside
  11. ALw7sH

    [HELP] Shader

    And you can set an element data to the vehicle and when it stream in apply the shader to it Ithink this is better than triggers
  12. fetchRemote callRemote
  13. What about an approximate date for realsing 1.5 officially?
  14. ALw7sH

    طلب

    function ram1() local time = getRealTime() local hours = time.hour local minutes = time.minute local second = time.second local month = time.month + 1 local day = time.monthday if ( month == 5 ) and ( day == 18 ) then outputChatBox("Today is : " .. day ) outputChatBox("المصادف : " .. "1 " .. "رمضان" ) Exit1() elseif ( ) then -- end end addEventHandler ( "onClientRender", root, ram1 ) function Exit1() removeEventHandler("onClientRender", root, ram1) end
  15. ALw7sH

    WTF its wrong

    There's no problem, are you sure you have this element data ? (style.walking)
  16. You can't unload the loadstring itself
  17. To be honest it's like you get random lines from random scripts or something and put them in one script function addGroup (thePlayer,cmd,groupByName) if thePlayer then local qh = dbQuery( connection, "INSERT INTO table_name VALUES (?)",tostring(gangName)) dbPoll (qh,0) outputChatBox("Group System : You successfully created group : " "".. tostring(groupByName) .."" ,thePlayer,255,255,0) setElementData(thePlayer,"groupName", tostring(groupByName) ) else outputChatBox("Invalid syntax. Syntax is /creategroup ",thePlayer,255,255,0) end end
  18. ALw7sH

    Doesn't work

    tickA = {} function toggleAFK() local one_min = 1000*60 -- one minute. if tickA[localPlayer] and getTickCount()-tickA[localPlayer] < one_min then return else tickA[localPlayer] = getTickCount() setPlayerAFK() end end addCommandHandler("afk", toggleAFK)
  19. That is extremely true, even with variables Especially if you aspire to have server with 100+ players without lag that small thing may case lag with alot players, who know
  20. setAccountData(acc,"key",false) Should work, if it's not then that's your saving system problem
  21. Use onBotFindEnemy event and check if the enemy is bot using isPedBot function
  22. القيم مود الي 90 بالمئه من السيرفرات او كلها تستخدمه هو ببلك يعني مو خاص فيهم يعني مافيه أي صعوبه لو تبي تسوي واحد عربي تفك سيرفر وتحط عليه القيم مود وخلاص لول
  23. if not amountWanted < 7 and not amountWanted > -1 then not amountWanted - return boolean if not ( amountWanted < 7 ) and not ( amountWanted > -1 ) then
  24. if ( theVehicle and theVehicle == 0 ) then
×
×
  • Create New...