AL-MR3B Posted June 3, 2014 Share Posted June 3, 2014 السلام عليكم ورحمة الله وبركاته ي شباب انا سويت مود واحد اذا كتب ب اف 8 فلوس يعطيه فلوس بس معيي يعطي فلوس -_-" الدي بق يقول attempt to index global 'Command' (a nil value) والحل ؟ وابي كود اعطاء سيارة Link to comment
فاّرس Posted June 3, 2014 Share Posted June 3, 2014 وعليكم السلام ورحمه الله وبركاته , اطرح الكود, بالنسبه لـ اعطاء سيارة , createVehicle Link to comment
AL-MR3B Posted June 3, 2014 Author Share Posted June 3, 2014 function givePlayerMoney(player,cmd,arg) end addCommandHandler('فلوس',givePlayerMoney) addEventHandler ( 'onPlayerCommand',getRootElement ( ), function ( cmd ) if Command [ cmd ] then givePlayerMoney(350) end end ) و مشكور على تفاعلك Link to comment
Max+ Posted June 3, 2014 Share Posted June 3, 2014 local cmd = "give" --- الامر اللي تكتبه local msg = "Here is $200 Have , fun" addCommandHandler(cmd, function(player, cmd) givePlayerMoney(player, 200) outputChatBox(msg, player, 255, 255, 0, false) end ) Link to comment
#DRAGON!FIRE Posted June 3, 2014 Share Posted June 3, 2014 addCommandHandler( "Money", function ( source ) givePlayerMoney( source, 350 ) end ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now