Jump to content

iPrestege

Members
  • Posts

    10,056
  • Joined

  • Last visited

  • Days Won

    27

Everything posted by iPrestege

  1. هذي تصير وظائف مبرمجة مثلا أي وظيفة تسويها وتقدر تستخدمها يمكن مسوي لـ الوظيفة exp... او او الخ ذذ عادي
  2. iPrestege

    arrest ?

    Hi,There's any function to arrest element ped,player..etc ?.
  3. لية وش نآوي تسوي عشان تستخدمها؟
  4. كل شي عندك أحب اسويه كذا ._. سألناك عن ";" تقول أحب اسويه كذا تقول احب اسويه كذا tonumber وسألناك عن تستخدم اكواد بدون ما تعرف فايدتها ._. لازم يسويه بالكلنت ويستخدم حدث onClientMarkerHit لأنه لو سوا تحديد الوقت بالسيرفر رح يحدد لكل اللاعبين الي بالسيرفر .. سوها بالكلنت عشان يتغير الوقت للاعب الي دخل الماركر فقط . ; هذي كذا بس احب استخدمها شكلها يرتب الكود ومآتسوي أي شيء للكود tonumber Tries to convert its argument to a number. If the argument is already a number or a string convertible to a number, then tonumber returns this number . يمكن كذا تفهم و يمكن بقرهـ مآتفهم ============================================= الله يعافيك ذذ
  5. 0,0 سلطان اية تجية بـس آحب آسوية كذا ذذ
  6. Function's : setTime getElementType Event' : onMarkerHit سلطان يعني يحول مثلا او يشيك الارقمنت رقم #
  7. الي بسطر رقم 2 بكودك ؟؟ tonumber ممكن أعرف وش فايدة + ماشوف تابل حاطها بكوده تستخدم في الارقام أفضل أسوي الاشياء كذا بـ حيث أتاكد منها ذذ هي ماتفرق بس أتأكد أكثر أنة لـ الرقم ذا ذذ
  8. function giveMoney() givePlayerMoney (source,tonumber(200)) end addEventHandler("onPlayerWasted",root, giveMoney)
  9. تبي تعطي البيد فلوس مثلا؟ ض-
  10. ليس عيبا ان تخطئ ولكن العيب ان تستمر على نفس الخطأ ;
  11. الكلنت عندك الايفنت هاندلر وينة + اسم الفنكشن كذا بيجيك بالديبوق ايرور + السيرفر اسم الفنكشن بيجيك آيرور جربة وشوف
  12. Hai! I was bored and I made this topic for reply and reply and reply and reply... The last who reply this topic will win. Win what? I really don't care about prices I just wanna enjoy the time . At this topic, you also can reply without sence, like "hvidfhgvhdbcudfguvge" or... "TROLOLOL". Just reply something . Okay! I'll start, how I guess, I will not be the last who reply that topic hehe.
  13. لا غلط ارقمنت العالم الوهمي شوفها زين؟؟؟؟؟؟؟؟؟؟؟؟ بس ارقمنتين الالمنت و العالم!!!
  14. عندك قوس ناقصص و خطأ بالفنكشن الاخير وشوية اخطاء
  15. مثآل : -- client -- xGetArmor_ = function ( ) triggerServerEvent("xGetArmor",localPlayer); end; addCommandHandler("xGetArmor",xGetArmor_) -- server -- local load = load xGetArmor_ = function ( ) if ( load ) then load = not load; setPedArmor(source,100); outputChatBox("* You Have "..getPedArmor(source).." Armor.",source,255,255,0,true); else setPedArmor(source,0); outputChatBox("* You Have "..getPedArmor(source).." Armor.",source,255,0,0,true); load = not load; end; end; addEvent("xGetArmor",true); addEventHandler("xGetArmor",root,xGetArmor_); هذا لو تكتبة يعطيك درع لو تكتبة ثانية يسحبة ( :
  16. You're Welcome , I forget the player argument because that you get bad argument !
  17. oh, sorry my bad try this : -- Spawn manager , local spawns = { { 238.6613311767, 141.05133056641, 1003.0234375 }; { 190.87297058105, 158.49531555176, 1003.0234375 }; { 298.23620605496, 172.01306152344, 1007.171875 } } -- Spawn manager , function spawn ( player ) if not isElement(player) then return end x,y,z = unpack(spawns[math.random(#spawns)]) setTimer ( spawnPlayer,3000,1,player, x, y, z,0,0,3,0 ); setTimer ( fadeCamera, 3000, 1, player, true, 0.5 ) setTimer ( setCameraTarget, 3000, 1, player, player ) showCursor ( player, false ) end addEventHandler ( 'onPlayerWasted', root, function ( ) fadeCamera ( source, false, 1.0, 0, 0, 0 ); setTimer ( fadeCamera, 3500, 1, source, true, 0.5 ); x,y,z = unpack(spawns[math.random(#spawns)]) setTimer ( spawnPlayer,3000,1,source, x, y, z,0,0,3,0 ); end )
  18. Can you post full code? i try it with command function "spawn" and work's great no error's!
  19. Ok try this server side -- Spawn manager , local spawns = { { 238.6613311767, 141.05133056641, 1003.0234375 }; { 190.87297058105, 158.49531555176, 1003.0234375 }; { 298.23620605496, 172.01306152344, 1007.171875 } } -- Spawn manager , function spawn ( player ) if not isElement(player) then return end x,y,z = unpack(spawns[math.random(#spawns)]) setTimer ( spawnPlayer,3000,1,source, x, y, z,0,0,3,0 ); setTimer ( fadeCamera, 3000, 1, player, true, 0.5 ) setTimer ( setCameraTarget, 3000, 1, player, player ) showCursor ( player, false ) end addEventHandler ( 'onPlayerWasted', root, function ( ) fadeCamera ( source, false, 1.0, 0, 0, 0 ); setTimer ( fadeCamera, 3500, 1, source, true, 0.5 ); x,y,z = unpack(spawns[math.random(#spawns)]) setTimer ( spawnPlayer,3000,1,source, x, y, z,0,0,3,0 ); end )
×
×
  • Create New...