بويكا Posted January 17, 2016 Posted January 17, 2016 if hasObjectPermissionTo ( command, "function.banPlayer" ) then ابيه بدال ما يكون للي يقدرون يعطون باند لسريال ؟ محدد #
بويكا Posted January 17, 2016 Author Posted January 17, 2016 if getPlayerSerial(command) ~= Serial then صح ؟
MR.GRAND Posted January 17, 2016 Posted January 17, 2016 if getPlayerSerial(command) ~= Serial then صح ؟ if getPlayerSerial(source) == "Your Serial" then ..........
Jupi Posted January 17, 2016 Posted January 17, 2016 if getPlayerSerial(command) ~= Serial then صح ؟ if getPlayerSerial(source) == "Your Serial" then .......... source = ?
MR.GRAND Posted January 17, 2016 Posted January 17, 2016 if getPlayerSerial(command) ~= Serial then صح ؟ if getPlayerSerial(source) == "Your Serial" then .......... source = ? يقدر يغيره حسب اللي عنده ^^ انا عطيته مصدر إفتراضي
</Mr.Tn6eL> Posted January 18, 2016 Posted January 18, 2016 فاهمين السورس غلط السورس خاص بالحدث موب خاص بشي ثاني يعني اول ماتسوي addEventHandler لحدث يتعرف السورس في الوظيفة وتقدر تسوي افنت خاص وتحط سورس خاص فيك مثلا كذا triggerEvent("MyEvent", element) -- element : هنا تحط السورس الخاص فيك لاعب سيارة بيد ماركر... bool triggerEvent ( string eventName, element baseElement, [ var argument1, ... ] ) بعدين تستقبل الافنت حقك addEvent("MyEvent", true) -- هنا نسجل الحدث addEventHandler("MyEvent", root, function( ) -- هنا نحط وظيفة للحدث outputChatBox(getElementType(source)) -- نكتب بالشات نوع السورس end) -- نغلق الحدث والوظيفة وعشان تعرف السورس الخاص بالحدث تروح لصفحة الويكي الخاص بالحدث Client Events Server Events وراح تلاحظ onMarkerHit onPlayerChat
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