iexammpl3 Posted October 11, 2013 Share Posted October 11, 2013 سلام عليكم انا في سيرفري مود غريب ششوي و محد فكر فيها من قبل و ابي اسوي مود الي يضغط F اكثر من 4 مرات ورا بعض بسرعه يجيه كيك <3 Link to comment
AHMAD1234 Posted October 12, 2013 Share Posted October 12, 2013 (edited) جرب.؟ Client antiF = 0 bindKey("f", "down", function () if antiF >= 4 then triggerServerEvent ("kick", getLocalPlayer()) else antiF = antiF + 1 end end) setTimer(function() antiF = 0 end ,3000,0) Server addEvent ("kick", true) addEventHandler ("kick", getRootElement(), function() kickPlayer ( client, "don't press 'F' in same time more than 4 times" ) end) Update #1 Edited October 12, 2013 by Guest Link to comment
-#Saimon Posted October 12, 2013 Share Posted October 12, 2013 في سيرفر بيس مود على ماظن اسمه سعود خمس مرات يجيك سلاب F اذا ضغطت حرف Link to comment
AHMAD1234 Posted October 12, 2013 Share Posted October 12, 2013 kickلا تنسى تضيف الاسكربت لقروب الادمن او الكونسول او قروب عنده صلاحية الـ Link to comment
3NAD Posted October 12, 2013 Share Posted October 12, 2013 -- Client Side local f = 0 local t bindKey ( "f", "down", function ( ) if f >= 4 then return triggerServerEvent ( "onKickPlayer", localPlayer ) end if isTimer ( t ) then killTimer ( t ) end f = f+1 t = setTimer ( function ( ) f = 0 end, 1000, 0 ) end ) -- Server Side addEvent ( "onKickPlayer", true ) addEventHandler ( "onKickPlayer", root, function ( ) kickPlayer ( source, "Keyboard Spam 'F'." ) 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