z24d Posted October 2, 2015 Author Posted October 2, 2015 مشكور بس ابي الفلوس بالكوماند الثاني يعني اكتب giveall 12319237 يطلع بالجيو الرسالة عرفت كيف ويستلمها الاعب
#CroSs Posted October 2, 2015 Posted October 2, 2015 مشكور بس ابي الفلوس بالكوماند الثاني يعني اكتبgiveall 12319237 يطلع بالجيو الرسالة عرفت كيف ويستلمها الاعب addCommandHandler( "giveall", function( player, _, amount ) if ( not isGuestAccount( getPlayerAccount( player ) ) ) then if ( isObjectInACLGroup( "user."..getAccountName( getPlayerAccount( player ) ), aclGetGroup( "Console" ) ) ) then if ( amount ) then for _, player in ipairs( getElementsByType( "player" ) ) do givePlayerMoney( player, amount ) end exports["killmessages"]:outputMessage( "* #FFFFFF[#CC0000 Server.Owner #FFFFFF] [ "..getPlayerName(player).." #FFFFFF] #00FFFF( #00FF00[ GIFT ]بدأ توزيع جديد لإستلام التوزيع اكتب في اف8 #00FFFF) ["..amount.."]", root, 255, 0, 0 ) end else exports["killmessages"]:outputMessage( "* #FFFFFF[#CC0000 Server.Owner #FFFFFF] انت لست ادمن", player, 255, 0, 0 ) end else exports["killmessages"]:outputMessage( "* #FFFFFF[#CC0000 Server.Owner #FFFFFF] يجب تسجيل الدخول", player, 255, 0, 0 ) end end )
z24d Posted October 2, 2015 Author Posted October 2, 2015 addCommandHandler('GIFT', function ( player ) if ( not isGuestAccount ( getPlayerAccount ( player ) ) ) then if ( not getAccountData ( getPlayerAccount ( player ) , 'r8' ) ) then givePlayerMoney ( player , amount ) exports.killmessages:outputMessage("Congratolation * #00FF00[ "..getPlayerName(player).."#00FF00 ]#FFFF00 استلم الهدية ",root,255,255,0) setAccountData ( getPlayerAccount ( player ) , 'r8', true ) else outputChatBox('* لقد اخذت مسبقاً ',player,0,255,0,true) end else outputChatBox('* الرجأء تسجيل الدخول !',player,255,0,0,true) end end ) addCommandHandler ( "12", function (player,_,amount) local aa = getPlayerAccount(player) if not isGuestAccount(aa) then if (isObjectInACLGroup("user."..getAccountName(aa),aclGetGroup("Console"))) then exports.killmessages:outputMessage( "* #FFFFFF[#CC0000 Server.Owner #FFFFFF] [ "..getPlayerName(player).." #FFFFFF] #00FFFF( #00FF00[ GIFT ]بدأ توزيع جديد لإستلام التوزيع اكتب في اف8 #00FFFF) ["..amount.."]" ,root, 255,0,0) for i,v in ipairs ( getAccounts() ) do setAccountData( v , "r8" , false ) end else outputChatBox("#FF0000 Please Login First",source,255,0,0) end end end ) مازبط؟
' A F . Posted October 2, 2015 Posted October 2, 2015 تفضل addCommandHandler ( "12", function (player,_,amount) if ( not isGuestAccount(getPlayerAccount ( player )) ) then if (isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("Console"))) then exports.killmessages:outputMessage( "* #FFFFFF[#CC0000 Server.Owner #FFFFFF] [ "..getPlayerName(player).." #FFFFFF] #00FFFF( #00FF00[ GIFT ]بدأ توزيع جديد لإستلام التوزيع اكتب في اف8 #00FFFF) ["..amount.."]" ,root, 255,0,0) for i,v in ipairs ( getAccounts() ) do setAccountData( v , "r8" , false ) setAccountData ( v , 'money' , amount or false) end else outputChatBox("#FF0000 Please Login First",source,255,0,0) end end end ) addCommandHandler('GIFT', function ( player ) if ( not isGuestAccount ( getPlayerAccount ( player ) ) ) then if ( not getAccountData ( getPlayerAccount ( player ) , 'r8' ) ) then givePlayerMoney ( player , getAccountData ( getPlayerAccount ( player ) , 'money' ) ) exports.killmessages:outputMessage("Congratolation * #00FF00[ "..getPlayerName(player).."#00FF00 ]#FFFF00 استلم الهدية ",root,255,255,0) setAccountData ( getPlayerAccount ( player ) , 'r8', true ) setAccountData ( getPlayerAccount ( player ) , 'money', false ) else outputChatBox('* لقد اخذت مسبقاً ',player,0,255,0,true) end else outputChatBox('* الرجأء تسجيل الدخول !',player,255,0,0,true) end end )
' A F . Posted October 2, 2015 Posted October 2, 2015 غريبه الكود ظآبط معي شوف ألان addCommandHandler ( "12", function (player,_,amount) if ( not isGuestAccount(getPlayerAccount ( player )) ) then if (isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)),aclGetGroup("Console"))) then exports.killmessages:outputMessage( "* #FFFFFF[#CC0000 Server.Owner #FFFFFF] [ "..getPlayerName(player).." #FFFFFF] #00FFFF( #00FF00[ GIFT ]بدأ توزيع جديد لإستلام التوزيع اكتب في اف8 #00FFFF) ["..amount.."]" ,root, 255,0,0) for i,v in ipairs ( getAccounts() ) do setAccountData( v , "r8" , false ) setAccountData ( v , 'money' , amount) end else outputChatBox("#FF0000 Please Login First",source,255,0,0) end end end ) addCommandHandler('GIFT', function ( player ) if ( not isGuestAccount ( getPlayerAccount ( player ) ) ) then if ( not getAccountData ( getPlayerAccount ( player ) , 'r8' ) ) then givePlayerMoney ( player , getAccountData ( getPlayerAccount ( player ) , 'money' ) ) exports.killmessages:outputMessage("Congratolation * #00FF00[ "..getPlayerName(player).."#00FF00 ]#FFFF00 استلم الهدية ",root,255,255,0) setAccountData ( getPlayerAccount ( player ) , 'r8', true ) else outputChatBox('* لقد اخذت مسبقاً ',player,0,255,0,true) end else outputChatBox('* الرجأء تسجيل الدخول !',player,255,0,0,true) end end )
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