Raised This Month: $51 Target: $400
 12% 

Request: Xp Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lumbsta
Veteran Member
Join Date: Jun 2006
Location: Germany
Old 05-18-2006 , 08:50   Request: Xp Plugin
Reply With Quote #1

Hi@all!

Well this is my first post, so please be nice to me

I've got a SHMod server on which I'd like to make a weekly gamble:

Every wednesday at 8pm the plugin should randomly choose one player
and give him 50,000XP. Well, it would be nice if the plugin could announce
the gamble and the winner...

I hope some of you scripters can code it


THX

BTW: I'm using AMXX 1.71
lumbsta is offline
Send a message via ICQ to lumbsta Send a message via MSN to lumbsta Send a message via Skype™ to lumbsta
Xel0z
Senior Member
Join Date: Apr 2006
Location: Netherlands
Old 05-18-2006 , 08:56  
Reply With Quote #2

Isnt this superheromod? I think u should go to the amxmod(x) forums.. There they make such plugins
__________________
Heroes: TESS-One Working on: Grit (Fixing bugs)
Xel0z is offline
Send a message via MSN to Xel0z
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 05-18-2006 , 09:02  
Reply With Quote #3

wouldnt be too hard to make. ill look into it when i get back from school today
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
lumbsta
Veteran Member
Join Date: Jun 2006
Location: Germany
Old 05-18-2006 , 13:17  
Reply With Quote #4

Sry, but I just can't wait....when do you get back from school?
lumbsta is offline
Send a message via ICQ to lumbsta Send a message via MSN to lumbsta Send a message via Skype™ to lumbsta
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 05-18-2006 , 17:27  
Reply With Quote #5

now ill start working on something
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 05-18-2006 , 19:03  
Reply With Quote #6

here ya go, this should work.. tell me if it does...
Code:
 /* CVARS - copy and paste to shconfig.cfg

 //RANDOM XP GIVER
 sh_day			//day to give out random xp
					// a=sunday
					// b=monday
					// c=tuesday
					// d=wednesday
					// e=thursday
					// f=friday
					// g=saturday
 sh_hour		//hour of the day to give xp ("kw" = 10AM and 10PM)
					//AM								//PM
					//   1   3   5   7   9  11	  1   3   5   7   9  11
					// a b c d e f g h i j k l	m n o p q r s t u v w x

 sh_xptogive	//ammount of xp to give

 */
edit: changed the cvars from numbers to strings, so you can have multiple days/hours
Attached Files
File Type: sma Get Plugin or Get Source (random_xp_giver.sma - 1120 views - 4.7 KB)
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
lumbsta
Veteran Member
Join Date: Jun 2006
Location: Germany
Old 05-19-2006 , 07:27  
Reply With Quote #7

First of all: BIG THX!!!

Compiling worked, now I've just to wait for full hour to test it!

I gonna edit my post for the result!

€: Ok, plugin works, but starts about 5mins to late
lumbsta is offline
Send a message via ICQ to lumbsta Send a message via MSN to lumbsta Send a message via Skype™ to lumbsta
(,)!nkl3
Member
Join Date: Oct 2005
Location: Chester, UK
Old 05-19-2006 , 13:47  
Reply With Quote #8

nice job like it indeed
__________________
.#6times. is Back
Server IPS:
Superhero Server: 81.19.208.12:27015
Normal Server: TBC
(,)!nkl3 is offline
Send a message via AIM to (,)!nkl3 Send a message via MSN to (,)!nkl3
123
Veteran Member
Join Date: Apr 2005
Location: Katy, TX
Old 05-19-2006 , 15:32  
Reply With Quote #9

Quote:
Originally Posted by lumbsta
First of all: BIG THX!!!

Compiling worked, now I've just to wait for full hour to test it!

I gonna edit my post for the result!

€: Ok, plugin works, but starts about 5mins to late
If your server is not located on the same PC as you play from, you can't look at the time on your computer.
You will have to use "thetime"
__________________
//ShadowLeader - 123
123 is offline
(,)!nkl3
Member
Join Date: Oct 2005
Location: Chester, UK
Old 05-19-2006 , 17:30  
Reply With Quote #10

can u have multiple* times on it, for e.g. @ 7 and at 9? would you put 19,21?
__________________
.#6times. is Back
Server IPS:
Superhero Server: 81.19.208.12:27015
Normal Server: TBC
(,)!nkl3 is offline
Send a message via AIM to (,)!nkl3 Send a message via MSN to (,)!nkl3
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:06.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode