Register for your free account! | Forgot your password?

You last visited: Today at 13:56

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

Advertisement



[Release] Very first Self code

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

Reply
 
Old   #1
 
shadow8994's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 124
Received Thanks: 16
[Release] Very first Self code

I made this by my self and I'm proud because I don't know a thing about C# or coding in general, but I'm learning... I admit I tried to look up a tutorial for this but I failed at finding one so I just did it my self and it worked, I wont even ask for thumbs up because it's not worth anything, but a big congrats would be appreciated =)

Code:
                     #region /clearpkp
                        if (Cmd[0] == "/clearpkp")
                            GC.MyChar.PKPoints = 0;
#endregion
shadow8994 is offline  
Thanks
5 Users
Old 03/20/2011, 04:59   #2
 
elite*gold: 0
Join Date: Jun 2010
Posts: 10
Received Thanks: 1
xD this is a very nice^^ thanks for you frist release^^
aloisioXD is offline  
Thanks
1 User
Old 03/20/2011, 05:23   #3
 
shadow8994's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 124
Received Thanks: 16
No thank you for the nice comment =)
shadow8994 is offline  
Old 03/20/2011, 05:32   #4
 
BioHazarxPaul's Avatar
 
elite*gold: 0
Join Date: Nov 2005
Posts: 548
Received Thanks: 93
Its a start lets see something a bit more advance down the road though..
BioHazarxPaul is offline  
Old 03/20/2011, 05:50   #5
 
shadow8994's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 124
Received Thanks: 16
I'll do my best..
shadow8994 is offline  
Old 03/20/2011, 07:32   #6
 
elite*gold: 0
Join Date: Aug 2010
Posts: 93
Received Thanks: 18
Great job for a beginner m8,
btw thumbs up is youtube xD?
ill Thanks tho .
sitdownson is offline  
Old 03/20/2011, 11:35   #7
 
elite*gold: 0
Join Date: Mar 2011
Posts: 165
Received Thanks: 17
If this is yours, Great Job for a beginner.
iStefan is offline  
Old 03/20/2011, 15:43   #8
 
ImFlamedCOD's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 378
Received Thanks: 141
Trying is the best thing you can do. I give anyone props for trying to do anything. You may not know much about c# but your trying and that is what counts. Do your best and try is the only thing a person can ask for. If you are willing to learn and are willing to put forth the effort you will succeed and it will pay off. Wisdom from InFlamedCOD.
ImFlamedCOD is offline  
Thanks
5 Users
Old 03/20/2011, 21:13   #9
 
.Snowy's Avatar
 
elite*gold: 0
Join Date: Mar 2011
Posts: 23
Received Thanks: 1
Great job mate! Hope we will see more better releases from you!!!
.Snowy is offline  
Old 03/21/2011, 01:01   #10
 
shadow8994's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 124
Received Thanks: 16
Thanks for all the great comments =) Right now I'm working on a Quest, but I need a bit of help it's just a quest that teleports you to some Powerful monster and you kill it for rewards =) Help would be appreciated.
shadow8994 is offline  
Old 03/21/2011, 04:09   #11
 
BioHazarxPaul's Avatar
 
elite*gold: 0
Join Date: Nov 2005
Posts: 548
Received Thanks: 93
look at other npc scripts from the source that's how i normally learn how to code npcs cause each source is a bit different
BioHazarxPaul is offline  
Old 03/21/2011, 07:28   #12
 
elite*gold: 0
Join Date: Jan 2011
Posts: 470
Received Thanks: 97
Reminds me of when I first started coding. =p
Good job.
Spirited42 is offline  
Thanks
2 Users
Old 03/22/2011, 13:40   #13
 
ImFlamedCOD's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 378
Received Thanks: 141
Quote:
Originally Posted by shadow8994 View Post
Thanks for all the great comments =) Right now I'm working on a Quest, but I need a bit of help it's just a quest that teleports you to some Powerful monster and you kill it for rewards =) Help would be appreciated.
Well one easy way would be to have a NPC that ask you would you like to try to kill the [monster's name here] and have great chances of great rewards. Then if they click yes under that portion of your code have it teleport the player to the map where you spawned the monster.
ImFlamedCOD is offline  
Old 03/27/2011, 05:14   #14
 
shadow8994's Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 124
Received Thanks: 16
Yea I'm trying to do that but I need some help lol
shadow8994 is offline  
Old 03/27/2011, 05:38   #15
 
Arco.'s Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 335
Received Thanks: 170
How about this mate,
if (Cmd[0] == "/pkp")
GC.MyChar.PKPoints = ushort.Parse(Cmd[1]);

ushort.Parse basically detects if that string is a number, and converts it to a ushort.
So your characters pkpoints will be whatever value you set Cmd[1] to.
EI /pkp 52 will set your pkpoints to 52.
Arco. is offline  
Thanks
1 User
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



All times are GMT +1. The time now is 13:57.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.