Jump to content

مساعدة


Recommended Posts

  
  
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
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
  
  
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...