Register for your free account! | Forgot your password?

You last visited: Today at 12:25

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] Congratulate code

Discussion on [Release] Congratulate code within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
Vortex.'s Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 275
Received Thanks: 22
[Release] Congratulate code

Yeah whatever.. Just incase you wanted it.. I take no credit other than posting it..

Code:
if (Splitter[0] == "/congratulate")
           {
               World.SendMsgToAll("Congratulations to"+ Splitter[1]+" for winning the event" , "[SYSTEM]", 2011);
           }
Or if you want a foreach statment

Code:
if (Splitter[0] == "/congratulate")
                                        {
                                            foreach (DictionaryEntry DE in World.AllChars)
                                            {
                                                Character Char = (Character)DE.Value;
                                                if (Splitter[1] == Char.Name)
                                                {
                                                    World.SendMsg("Congratulations to "+ Splitter[1]+" for winning the event" , "[SYSTEM]", 2011);
                                                }
                                            }
                                        }
So when you type /congradulate Randomperson



Then you get this



This code was used by me as an event code..

Have fun

60% Of the credits go to BasicCoder
40% Go to me cause I posted half the code, then he edited it
Vortex. is offline  
Thanks
3 Users
Old 05/20/2009, 23:44   #2
 
elite*gold: 0
Join Date: May 2009
Posts: 7
Received Thanks: 0
Nice Work Vortex
mohamedxxx is offline  
Old 05/21/2009, 00:00   #3
 
elite*gold: 0
Join Date: May 2009
Posts: 74
Received Thanks: 65
Congratulate Code

It would be nice if you would give credits.
BasicCoder is offline  
Old 05/21/2009, 01:03   #4
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
good release i guess...

question though...wouldn't you want this after your event to the player who won and make it say automatically?
PeTe Ninja is offline  
Old 05/21/2009, 01:08   #5
 
Vortex.'s Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 275
Received Thanks: 22
@ PeTe Depend on the way your event is coded

@BasicCoder I forgot your name thats why
Vortex. is offline  
Old 05/21/2009, 01:12   #6
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
Quote:
Originally Posted by Vortex. View Post
@ PeTe Depend on the way your event is coded
well im pretty sure if you had a steady event then it is but if its like pk tourny on your own time then i see where you are going
PeTe Ninja is offline  
Old 05/21/2009, 01:16   #7
 
Vortex.'s Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 275
Received Thanks: 22
Yes.. I don't trust events which are not spectated by Admins
Vortex. is offline  
Old 05/21/2009, 01:49   #8
 
elite*gold: 0
Join Date: Sep 2008
Posts: 92
Received Thanks: 21
Vortex you sucks -.-
reborn666 is offline  
Old 05/21/2009, 02:35   #9
 
Vortex.'s Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 275
Received Thanks: 22
lol? That was random
Vortex. is offline  
Old 05/21/2009, 03:04   #10
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
Quote:
Originally Posted by Vortex. View Post
Yes.. I don't trust events which are not spectated by Admins
i see you made a control pnael for your server , you need some help adding anything?
PeTe Ninja is offline  
Old 05/21/2009, 03:14   #11
 
Vortex.'s Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 275
Received Thanks: 22
Yeah.. I actually took it out.. But I could learn.. add me @
Vortex. is offline  
Old 05/21/2009, 06:28   #12
 
AndreaCo's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 510
Received Thanks: 104
why did you make it so long with the foreach loop??

you could have dont it

if (Splitter[1] == "/congradulate")
{
World.SendMsgToAll("Congradultions to " + Splitter[1] + " for winning the event", "SYSTEM", 2011);
}
# edit nevermind i didint see the first part... sorry i am really tired atm XD
AndreaCo is offline  
Old 05/21/2009, 13:56   #13
 
Vortex.'s Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 275
Received Thanks: 22
LOL, you are sexy!
Vortex. is offline  
Old 05/26/2009, 21:22   #14
 
Vortex.'s Avatar
 
elite*gold: 0
Join Date: Apr 2009
Posts: 275
Received Thanks: 22
Oops
Vortex. is offline  
Reply


Similar Threads Similar Threads
[Release]Code
03/19/2011 - CrossFire Hacks, Bots, Cheats & Exploits - 11 Replies
basic player info you can see ghost and speed hack here { public: float fMoveMentWalkRate; //0000 float fMovementDuckRate; //0004 float fMovementSideRate; //0008 float fMoveMentAcceleration; //000C float fMoveMentFriction; //0010 float fJumpTime; //0014
[Help] Congratulate code
05/20/2009 - CO2 Private Server - 16 Replies
I'm not familiar with making commands of this sort.. So could someone edit this and post it back to me? if (Splitter == "/congratulate") { foreach (DictionaryEntry DE in World.AllChars) { Character Char = (Character)DE.Value; if (Splitter == Char.Name)
[Release] Reflect Code
12/04/2008 - CO2 PServer Guides & Releases - 5 Replies
#Deleted Sorry



All times are GMT +2. The time now is 12:25.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.