[Blood]Hitman Posted October 6, 2012 Share Posted October 6, 2012 function clear(player) if hasObjectPermissionTo(player, "function.setPlayerMuted", false) then for i=1,30 do outputChatBox(" ") end outputChatBox("*** #ff0000INFO:#ffff00#736F6E ADMIN #00ff00[ "..getPlayerName(player).." ] #ffff00#736F6E#736F6ECLEARED THE CHAT #ff0000***",root,255,12,15, true) else outputChatBox ("You are Not Admin", player, 193, 13, 13) end end addCommandHandler("cc", clear) بس فيه مشكلة ان مو كل الادمنية منهم الكونسول ميقدرون يمسحون الشات يارين احد يسويه للعلم الكود مو حقي Link to comment
hassan.k.s.a Posted October 6, 2012 Share Posted October 6, 2012 function clear(player) if ( hasObjectPermissionTo ( thePlayer, "general.adminpanel", true ) ) then for i=1,30 do outputChatBox(" ") end outputChatBox("*** #ff0000INFO:#ffff00#736F6E ADMIN #00ff00[ "..getPlayerName(player).." ] #ffff00#736F6E#736F6ECLEARED THE CHAT #ff0000***",root,255,12,15, true) else outputChatBox ("You are Not Admin", player, 193, 13, 13) end end addCommandHandler("cc", clear) Link to comment
abu5lf Posted October 6, 2012 Share Posted October 6, 2012 function clear(player) if hasObjectPermissionTo(player, "function.setPlayerMuted", false) then for i=1,30 do outputChatBox(" ") end outputChatBox("*** #ff0000INFO:#ffff00#736F6E ADMIN #00ff00[ "..getPlayerName(player).." ] #ffff00#736F6E#736F6ECLEARED THE CHAT #ff0000***",root,255,12,15, true) else outputChatBox ("You are Not Admin", player, 193, 13, 13) end end addCommandHandler("cc", clear) بس فيه مشكلة ان مو كل الادمنية منهم الكونسول ميقدرون يمسحون الشات يارين احد يسويه للعلم الكود مو حقي addCommandHandler ( 'cc', function ( playerSource ) if ( hasObjectPermissionTo ( playerSource, 'general.adminpanel', true ) ) then for i=0,30 do outputChatBox ( '' ) end outputChatBox ( '*** #ff0000INFO:#ffff00#736F6E ADMIN #00ff00[ '..getPlayerName(playerSource)..' ] #ffff00#736F6E#736F6ECLEARED THE CHAT #ff0000***', root, 255, 12, 15, true ) else outputChatBox ( 'You are Not Admin', playerSource, 193, 13, 13 ) end 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