[Request]Reward

07/01/2009 22:47 imported_spitt_fire911#1
can someone make me a cmd where I can just type /rewardcps all

and it will give cps to all..


Like

/rewardcps 500 all

I use 5017 !! PLZ
07/01/2009 23:27 Pete1990#2
HTML Code:
 ////////CREDITS Go To Pete////////////////
                                            if (Splitter[0] == "/givecps")
                                            {
                                                foreach (DictionaryEntry DE in World.AllChars)
                                                {
                                                    Character Char = (Character)DE.Value;
                                                    {
                                                        uint NewCPs = uint.Parse(Splitter[1]);
                                                        Char.CPs += NewCPs;
                                                        SendPacket(General.MyPackets.Vital((long)MyChar.UID, 30, MyChar.CPs));
                                                    }
                                                }
                                            }
                                            ////////CREDITS Go To Pete////////////////
07/02/2009 01:26 imported_spitt_fire911#3
Ty bruh ^.^
07/02/2009 01:34 ImFlamedCOD#4
Not tested just how i would do it
PHP Code:
                    case "@award":
                        {
                            if (
Client.Login_Status == Client.LoginStatus.Admin)

                                switch (
args[1])
                                {
                                    case 
"cps":
                                        {
                                            
// stick code here for player or all
                                            
Client.CPS ushort.Parse(args[2]);
                                            
Sync.CPS(Client);
                                            break;
                                        }
                                    case 
"money":
                                        {
                                            
// stick code here for all player or sepic @award money all or @award money <player name>
                                            
Client.Money ushort.Parse(args[2]);
                                            
Sync.Money(Client);
                                            break;

                                        }
                                }
                            else
                                Global.
Message("You are not allowed to use this command sorry!!!!"0xffffffMessageType.Center);
                            break;
                        } 
07/02/2009 07:51 imported_spitt_fire911#5
Request #close
07/02/2009 08:02 imported_spitt_fire911#6
#Request Close
07/02/2009 08:18 kinshi88#7
#Closed