Jump to content

little help in script


Recommended Posts

Ok this is part of my script that remove swears and I want to add to it a player serial so if the source is swear or the player serial is the serial I selected it will cancel the event so can anyone tell me how to add it to this code?

                if src:find(pat) then 
                    cancelEvent() 
                    outputChatBox('#'..v["color1"]..' ' ..v["name"]..' '.. getPlayerName ( source ) .. ' : #'..v["color2"]..''..text..'', getRootElement(), r, g, b, true ) 
                break 
                end 
            end 

Link to comment
What do you mean by 'if the source is swear'?

This script is a part of my tag system and it stop using bad words or swears and i want to add playercserial to it so it will be

If source is swear or if player serail is *serial then cancle the event

So can you tell me how to add that in the first line in the script?

Link to comment
if player serail is *serial then cancle the event

So can you tell me how to add that in the first line in the script?

if ( getPlayerSerial ( player ) == "0396C6F543425FFE37A326883D73B4F4" ) then 
    cancelEvent ( ) 
end 

I tested it but it didn't work?

        if src:find(pat) or ( getPlayerSerial ( player ) == "0396C6F543425FFE37A326883D73B4F4" ) then 
                    cancelEvent() 
                    outputChatBox('#'..v["color1"]..' ' ..v["name"]..' '.. getPlayerName ( source ) .. ' : #'..v["color2"]..''..text..'', getRootElement(), r, g, b, true ) 
                break 
                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...