-
Posts
1,165 -
Joined
-
Last visited
-
Days Won
3
Everything posted by ALw7sH
-
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
-
setPedStat setElementHealth setPedArmor
-
بدون تفلسف الي مسوي يبي يطقطق ساعد الرجال اول بعدين طقطق حسين خطأ وانا اخطأت بس على الاقل حاولنا نساعد محد عارف كل شي بالبرمجه يعني مايحتاج تسوي نفسك الفاهم وتطقطق كلامي مو موجه لشخص محدد
-
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
-
كود الي فوق تابل يسوي لوب وكود تابل مايسوي لوب اللوب له تأثير اقوا على الس بي يو غالباً
-
مايحتاج تريقر لول 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 )
-
مافيه أي صله بين localPlayer و source السورس موجود كلاينت وسيرفر في الايفتات بس وهو المصدر للأيفنت ومو لازم يكون لاعب ولوكال بلاير فقط كلاينت ومو شرط يكون في ايفنت هو يعبر عن اللاعب الي جالس يشغل السكربت او باختصار اللاعب الي شغال عنده السكربت
-
If you mean the element data, doesn't matter he's registerd or not the data will be deleted
-
The data will be deleted when the player left the server
-
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
-
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
-
fetchRemote callRemote
-
What about an approximate date for realsing 1.5 officially?
-
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
-
There's no problem, are you sure you have this element data ? (style.walking)
-
You can't unload the loadstring itself
-
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
-
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)
-
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
-
setAccountData(acc,"key",false) Should work, if it's not then that's your saving system problem
-
Use onBotFindEnemy event and check if the enemy is bot using isPedBot function
-
القيم مود الي 90 بالمئه من السيرفرات او كلها تستخدمه هو ببلك يعني مو خاص فيهم يعني مافيه أي صعوبه لو تبي تسوي واحد عربي تفك سيرفر وتحط عليه القيم مود وخلاص لول
-
if not amountWanted < 7 and not amountWanted > -1 then not amountWanted - return boolean if not ( amountWanted < 7 ) and not ( amountWanted > -1 ) then
-
if ( theVehicle and theVehicle == 0 ) then
-
♯ / (JaM3A / Al QowaT) Shelby قريب علي جامعة و القوات فورد
ALw7sH replied to terreus's topic in Arabic / العربية
مبتدئ وخلصت السياره في 12 ساعه غريب ولله
