Jump to content

سؤال


Recommended Posts

عليكم السلام

شوف هذا الشرح من اخونا زاحف

https://forum.multitheftauto.com/viewtopic.php?f=164&t=57985

وشوف هذا المثال الي تبيه

TheWeapon = { 38 ,30 ,25 } 
  
addCommandHandler("GiveMe", 
  
    function ( player , cmd ) 
  
    giveWeapon( player,TheWeapon[ math.random ( #TheWeapon ) ]) 
  
    end 
    ); 
  

بالتوفيق ان شاء الله

Link to comment
عليكم السلام

شوف هذا الشرح من اخونا زاحف

https://forum.multitheftauto.com/viewtopic.php?f=164&t=57985

وشوف هذا المثال الي تبيه

TheWeapon = { 38 ,30 ,25 } 
  
addCommandHandler("GiveMe", 
  
    function ( player , cmd ) 
  
    giveWeapon( player,TheWeapon[ math.random ( #TheWeapon ) ]) 
  
    end 
    ); 
  

بالتوفيق ان شاء الله

مشكور , امين وياك ^

Link to comment

addCommandHandler("TakeWep", 
function (plr) 
local RandomWeapon = math.random(0,38) 
giveWeapon(plr, RandomWeapon) 
exports["guimessages"]:outputServer(plr,"You Take"..tonumber(RandomWeapon).." Weapon) From Your Random Given",0,255,0) 
end 
) 
Edited by Guest
Link to comment
addCommandHandler("TakeMoney", 
function (plr) 
local RandomMoney = math.random(100,1000) 
setPlayerMoney(plr, RandomMoney) 
exports["guimessages"]:outputServer(plr,"You Take"..tonumber(RandomMoney).."$) From Your Random Given",0,255,0) 
end 
) 

تشوف ؟ ولا اجيب لك نظارات ؟ قلت اسلحة مو فلوس + فادوني فوق !

Link to comment

-_- عفو

بس طريقتي شي و طريقة

عبد الكريم شي

هو مسوي جدول و انا مسوي من

سلاح الي سلاح

تبي تسوي بطريقة عبد الكريم هي صح

بس هتقعد تضيف كل الاسلحة فلجدول

Link to comment
-_- عفو

بس طريقتي شي و طريقة

عبد الكريم شي

هو مسوي جدول و انا مسوي من

سلاح الي سلاح

تبي تسوي بطريقة عبد الكريم هي صح

بس هتقعد تضيف كل الاسلحة فلجدول

ردي كافي وبعدين لو انت سويت يختار من 10 الى 1000 بعض في بعض الارقام مالها وجود بالاصح مالها سلاح

وكذا راح يصير لاق او بق

عشان كذا يحط ايديات صحيحة

فهمت كيف

عليكم السلام

شوف هذا الشرح من اخونا زاحف

https://forum.multitheftauto.com/viewtopic.php?f=164&t=57985

وشوف هذا المثال الي تبيه

TheWeapon = { 38 ,30 ,25 } 
  
addCommandHandler("GiveMe", 
  
    function ( player , cmd ) 
  
    giveWeapon( player,TheWeapon[ math.random ( #TheWeapon ) ]) 
  
    end 
    ); 
  

بالتوفيق ان شاء الله

مشكور , امين وياك ^

العفو , حياك الله

Link to comment

  
Weapon = { 
    "colt 45", 
    "mp5", 
    "ak-47",  
    "tec-9", 
    "minigun", 
} 
     
function MuhannaDxP( command ) 
    if command == "GiveMeWeapon" then 
    Randoms = Weapon [ math.random ( #Weapon ) ] 
    setWeapon = getWeaponIDFromName ( Randoms ) 
    giveWeapon ( source, setWeapon,80, true ) 
    else 
    outputChatBox ( "غـلـط", source, 255, 0, 0, true ) 
    end 
end 
addEventHandler ("onPlayerCommand", root, MuhannaDxP ) 
  
  

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...