Dr.Xen Posted January 22, 2014 Share Posted January 22, 2014 السلام عليكم ورحمة الله وبركاته. ابي تعديل للكود ذا .. شفت واحد نزل وانا دورت ولقيت .. local marker = createMarker ( 2013.8099365234,1544.779296875,11.310423851013, "cylinder", 1, 255, 252, 255 ); local bind = { } addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, p in ipairs( getElementsByType ( "player" ) ) do bindKey ( p, "h", "down", Animation ); end end ); addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "h", "down", Animation ); end ); function Animation ( plr ) if isElementWithinMarker ( plr, marker ) then local PlayerMoney = getPlayerMoney ( plr ); if ( PlayerMoney >= 150 ) then takePlayerMoney ( plr, 150 ); setPedAnimation ( plr, "FOOD", "EAT_Burger", _, false, _, _, false ); setPedArmor ( plr, 100 ); outputChatBox ( "* لقد قمت بشراء الدرع !", plr, 0, 255, 0, true ); else outputChatBox ( "* لا يوجد لديك المال الكافي لشراء الدرع !", plr, 255, 0, 0, true ); end bind[ plr ] = true end end addEventHandler ( "onMarkerLeave", marker, function ( player ) if ( getElementType ( player ) == "player" ) then if not ( bind[ player ] ) then outputChatBox ( "مرحبا بك", player, 255, 255, 0, true ) bind[ player ] = nil else bind[ player ] = nil end end end ) gnag ابي فقط يشتغل على قروبات سيستم< وحتى الكلأم للقروب Link to comment
Bssol Posted January 22, 2014 Share Posted January 22, 2014 local marker = createMarker ( 2013.8099365234,1544.779296875,11.310423851013, "cylinder", 1, 255, 252, 255 ); local bind = {} function onThisResourceStart ( ) for _, p in ipairs( getElementsByType ( "player" ) ) do bindKey ( p, "h", "down", Animation ); end end addEventHandler ( "onResourceStart", resourceRoot, onThisResourceStart ) function onPlayerJoin ( ) bindKey ( source, "h", "down", Animation ); end addEventHandler ( "onPlayerJoin", root, onPlayerJoin ) function Animation ( plr ) if isElementWithinMarker ( plr, marker ) then if ( getElementData(plr,"Group") ~= "اسم القروب" ) then outputChatBox ( "انت لست عضو في القروب", plr, 255, 0, 0 ) return end local PlayerMoney = getPlayerMoney ( plr ); if ( PlayerMoney >= 150 ) then takePlayerMoney ( plr, 150 ); setPedAnimation ( plr, "FOOD", "EAT_Burger", _, false, _, _, false ); setPedArmor ( plr, 100 ); outputChatBox ( "* لقد قمت بشراء الدرع !", plr, 0, 255, 0, true ); else outputChatBox ( "* لا يوجد لديك المال الكافي لشراء الدرع !", plr, 255, 0, 0, true ); end bind[ plr ] = true end end function onMarkerLeave ( player ) if ( getElementType ( player ) == "player" ) then if not ( bind[ player ] ) then outputChatBox ( "مرحبا بك", player, 255, 255, 0, true ) end bind[ player ] = nil end end addEventHandler ( "onMarkerLeave", marker, onMarkerLeave ) Link to comment
αвυ-wαleed Posted January 23, 2014 Share Posted January 23, 2014 اكره الورعنه هذا الكود انا مجمعه ومسويبة مود ليه تسرقة Link to comment
#DRAGON!FIRE Posted January 23, 2014 Share Posted January 23, 2014 اكره الورعنه هذا الكود انا مجمعه ومسويبة مود ليه تسرقة ترأ انت فـ المنتدى .. يعني اي احد يدخل الموضوع يقدر ياخذ الكود _ المنتدى مو بس لك الموضوع اللي ينطرح لأفأئتدك وافادة غيركـ ! 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