-
Posts
10,056 -
Joined
-
Last visited
-
Days Won
27
Everything posted by iPrestege
-
^ فهد حبي , كذآ اذا كانت فلوسه اقل من المبلغ رح يسحبها وتصير فلوسةة بالسسأإلب , يصصير كذآ addEventHandler ( "onMarkerHit", اسم الماركر, function ( hitPlayer ) if ( hitPlayer and getElementType(hitPlayer) == "player" and getPlayerMoney ( hitElement ) >= المبلغ ) then takePlayerMoney ( hitPlayer, المبلغ) else outputChatBox ( "You don't have enough money", hitPlayer, 255, 0, 0, true ) end end ) على ككل حأإل ننتظر جوأإبه على اسئلتي عششأإن نعرف نسويةة له ! المفروض موضح كل شيء وكيف مسوي الباب .. وطارح الكود ذذ عشان نفهمة
-
addEventHandler ( "onMarkerHit", اسم الماركر, function ( hitPlayer ) if ( hitPlayer and getElementType(hitPlayer) == "player" ) then takePlayerMoney ( hitPlayer, المبلغ) end end ) الكود يسحب المبلغ يوم يلمس الماركر ..ذذ عدل علية ! على حسب كودك حق الباب
-
* TakePlayerMoney ياخذ فلوس من الاعب * OnMarkerHit يوم يلمس الماركر
-
If, He Want, To Move The Gui He Can Use : guiSetPosition "onClientRender" setTimer removeEventHandler
-
Client : triggerServerEvent("rog:teams:setteam:community",localPlayer) Server : teamCommunity = createTeam ("Community", 255, 255, 0) addEvent("rog:teams:setteam:community",true) addEventHandler("rog:teams:setteam:community", function () setPlayerTeam(source,teamCommunity) end )
-
الوظيفة الثانية اهم وظيفة اللي حطها تابل createBlipAttachedTo الاخ / طلب Blip يتحرك مع السيارهـ ^ يعني لو بدونها ما راح يستفيد اي شيء / =
-
اي غش / = هذي ثقافة ومعلومات عارفينها من قبل على ما اعتقد رحم المرأة ؟
-
واضحةة | مفتاح , حاتم ذذ ( :
-
بالتوفيق , !
-
اسهل طريقة سورآ آول تكلم رد علي بـ موضوع : تروح لـ جوجل تكتب : 10 minute = milliseconds راح يظهر معك الناتج = 10 minutes = 600 000 milliseconds عدلها عشان تشيل المسافة ^ 10 minutes = 600000 milliseconds = 600000 جربها وشوف ^
-
مالي بـ المشآكل / = و عارف انك كاتبها بس كان تنبية / = يعني ماعتقد فيها شيء ^ ( = صحيح ؟ هو شيك وتاكد قالك انة الكود ماشتغل / = وطلال عدل الكود وصار الكود يبي يعدلة لكل احداثيات انتيرور يعني مافيها اي اشكالية الموضوع بس زايد كذآ مطول السالفة انت على ؟ ... ؟
-
No Just Try To Restart The Internet Modem.
-
Server : box = { } addCommandHandler ( "caf", function ( plr, commandName ) if isPedInVehicle(plr) then local veh = getPedOccupiedVehicle ( plr ) local x, y, z = getElementPosition ( plr ) if isElement(box[plr]) then destroyElement(box[plr]) box[plr] = nil end box[plr] = createObject ( 2229, x, y, z ) local ax, ay, az = getElementPosition ( box[plr] ) attachElements ( box[plr], veh, 0.3, -2.3, 0 ) triggerClientEvent ( root, 'boxattach', root, box[plr], plr, ax, ay, az) end end ) addEventHandler("onPlayerQuit",root, function () if isElement(box[source]) then destroyElement(box[source]) box[source] = nil end end ) Client : local sound = {} addEvent ( 'boxattach', true ) addEventHandler ( 'boxattach', root, function ( box, plr, ax, ay, az) local url = "" --here link sound if isElement(sound[plr]) then destroyElement(sound[plr]) sound[plr] = nil end sound[plr] = playSound3D(url, ax, ay, az, true) setSoundMaxDistance ( sound[plr], 100 ) attachElements ( sound[plr], box) end ) addEventHandler("onClientPlayerQuit",root, function () if isElement(sound[source]) then destroyElement(sound[source]) sound[source] = nil end end ) My bad i change it to player "only" .
-
Maybe your "IP" is not defined
-
You Should To Use Timer To Check Player Team So It,s Should To Be Like That : addEventHandler ( "onPlayerSpawn", root, function ( ) setTimer( function() local team = getPlayerTeam ( source ) if ( team ) then local r, g, b = getTeamColor ( team ) setPlayerNametagColor ( source, r, g, b ) end end, 500, 1 ) end )
-
لا الناس تخطي اكيد .. وبعدين انا ماسويت شيء كل اللي سويتة تعديل يعني تبي نعطية 60 % صحيح و 40 % خطأ ؟ ثالثا هو اللي طلب التصحيح ^ لو متابع الموضوع ..
-
If one will help you, will be SolidSnake14 becuse ,that script for solidsnake i mean gangsystem *
-
Server : box = { } addCommandHandler ( "caf", function ( plr, commandName ) if isPedInVehicle(plr) then local veh = getPedOccupiedVehicle ( plr ) local x, y, z = getElementPosition ( plr ) if isElement(box[plr]) then destroyElement(box[plr]) box[plr] = nil end box[plr] = createObject ( 2229, x, y, z ) local ax, ay, az = getElementPosition ( box[plr] ) attachElements ( box[plr], veh, 0.3, -2.3, 0 ) triggerClientEvent ( plr, 'boxattach', root, box[plr], ax, ay, az) end end ) addEventHandler("onPlayerQuit",root, function () if isElement(box[source]) then destroyElement(box[source]) box[source] = nil end end ) Client : local sound = nil addEvent ( 'boxattach', true ) addEventHandler ( 'boxattach', root, function ( box, ax, ay, az) local url = "" --here link sound if isElement(sound) then destroyElement(sound) sound = nil end sound = playSound3D(url, ax, ay, az, true) setSoundMaxDistance ( sound, 100 ) attachElements ( sound, box) end )
-
Marker = {} Positions = { [1] = { 296, -37, 1000.1 , 0}, [2] = { 0, 0, 0 , 1}, } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) for i = 1, #Positions do Marker[i] = createMarker ( Positions[i][1], Positions[i][2], Positions[i][3]-1, "cylinder", 2, 255, 255, 0, 150 ) setElementInterior( Marker[i], Positions[i][4]) addEventHandler ( "onClientMarkerHit", Marker[i], function ( hitPlayer ) if ( hitPlayer == localPlayer ) then show ( ) showCursor ( true ) end end ) end end ) {x,y,z,Interior} x = احداثي y = احداثي z = احداثي Interior = الانتيرنور ** ماجربتة تسسلم ي ولد خششمكك ضض2 ظبط بس احين كيف اضيف ثالث ورابع وخامس الخ.. [3] = { 0, 0, 0 , 2}, [4] = { 0, 0, 0 , 3}, [5] = { 0, 0, 0 , 4}, [6] = { 0, 0, 0 , 5}, حيـاك الله مثال Marker = {} Positions = { [1] = { 296, -37, 1000.1 , 0}, [2] = { 0, 0, 0 , 1}, [3] = { 0, 0, 0 , 2}, [4] = { 0, 0, 0 , 3}, [5] = { 0, 0, 0 , 4}, [6] = { 0, 0, 0 , 5}, } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) for i = 1, #Positions do Marker[i] = createMarker ( Positions[i][1], Positions[i][2], Positions[i][3]-1, "cylinder", 2, 255, 255, 0, 150 ) setElementInterior( Marker[i], Positions[i][4]) addEventHandler ( "onClientMarkerHit", Marker[i], function ( hitPlayer ) if ( hitPlayer == localPlayer ) then show ( ) showCursor ( true ) end end ) end end ) 3NAD : كيف تستخدم حدث في السيرفر و حدث في الكلنت في نفس الكود ذذ addEventHandler ( "onResourceStart", resourceRoot, وهنا مستخدم حدث في الكلنت وفوق مستخدم حدث في السيرفر addEventHandler ( "onClientMarkerHit", resourceRoot, |
-
Marker = {} Positions = { [1] = { 296, -37, 1000.1 , 0}, [2] = { 0, 0, 0 , 1}, } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) for i = 1, #Positions do Marker[i] = createMarker ( Positions[i][1], Positions[i][2], Positions[i][3]-1, "cylinder", 2, 255, 255, 0, 150 ) setElementInterior( Marker[i], Positions[i][4]) addEventHandler ( "onClientMarkerHit", Marker[i], function ( hitPlayer ) if ( hitPlayer == localPlayer ) then show ( ) showCursor ( true ) end end ) end end ) {x,y,z,Interior} x = احداثي y = احداثي z = احداثي Interior = الانتيرنور ** ماجربتة
-
ابي كود اقدر اسسوي اكثر من ماركر يفتح نفس النافذة طبعا كل واحد داخل انتيريور غير يعني تبي اكثر من ماركر يفتح النافذه بـ انتيريور مختلف ؟ او نفسة ؟
-
وش اللي تبية بالضبطط ؟ وضح بالتمام