Jump to content

Admin - Duty Script


Recommended Posts

Posted (edited)

try this i don't test it

addEventHandler ("onPlayerChat",getRootElement(), 
function(message,typ,player) 
if (type(string.find(message,"/adminduty"))) then 
local player = getPlayerName(source) 
  setPlayerNametagColor(source, 255,255,0 ) 
end 
  end) 
  
  

Edited by Guest

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

Posted

I don't understand what are you doing here... you are checking if he typed /adminduty, but what is the == "number"?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

"number" - This includes any number floating point (-0.22, 5.2333 (anything not an int)) and integers (-2,-1,0,1,2,3)

its my foul i make a cenzur script and that "number" is if you tipe "fu.ck" you still get mutet and i just copy paste the handler ....

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

Posted

You are kidding me right? I know what a "number" is -_-, but I don't understand why you used it in that script, was a mistake?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

i just copy pase the handler form my cenzur system .... and i forgot to delet that ..

Ingame Name : |DGT|Puma

DGT Clan Server 24/7 Owner/Scripter

MultiGameMode in progress :

n-560x95_FFFFFF_FFFFFF_0283C4_000000.png

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