Jump to content

طلب كلمة معينة تشتغل على سيريالات معينة


Recommended Posts

local ser = { 
["ser1"] = true, 
["ser2"] = true, 
["ser3"] = true, 
["ser4"] = true, 
["ser5"] = true, 
} 
  
addCommandHandler ( "hacker", 
function(player) 
local playerSer = getPlayerSerial(player) 
if ser[playerSer] then 
  
end 
end) 

cancelEvent

وينه ؟

ولا مايحتاج لانه مافيه افنت ؟

Link to comment

^ جرب

local OtherSerials = {  
["....."] = true, 
} 
  
addEventHandler("onPlayerCommand",root, function ( TheCommand ) 
if ( TheCommand == "hacker" or TheCommand == "HACKER" ) then  
if ( not OtherSerials [ getPlayerSerial ( source ) ] ) then  
cancelEvent ( ) 
end 
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...