isa_Khamdan Posted August 6, 2013 Posted August 6, 2013 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
isa_Khamdan Posted August 6, 2013 Author Posted August 6, 2013 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?
isa_Khamdan Posted August 6, 2013 Author Posted August 6, 2013 I made this but it didn't work? if src:find(pat) or (getPlayerSerial(player)~="0396C6F543425FFE37A326883D73B4F4")then
Tete omar Posted August 6, 2013 Posted August 6, 2013 if player serail is *serial then cancle the eventSo can you tell me how to add that in the first line in the script? if ( getPlayerSerial ( player ) == "0396C6F543425FFE37A326883D73B4F4" ) then cancelEvent ( ) end
isa_Khamdan Posted August 6, 2013 Author Posted August 6, 2013 if player serail is *serial then cancle the eventSo 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
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