Raised This Month: $32 Target: $400
 8% 

random bonuses


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
szogun
Senior Member
Join Date: Apr 2016
Old 11-18-2017 , 11:42   random bonuses
Reply With Quote #1

Hello
Is there anyone who can make a plugin that will give you a random bonus every round for a nickname?
szogun is offline
Bobakanoosh
Senior Member
Join Date: Sep 2015
Location: United States
Old 11-18-2017 , 12:20   Re: random bonuses
Reply With Quote #2

What kind of random bonus? What do you mean by a nickname?

Try to be more descriptive..
Bobakanoosh is offline
szogun
Senior Member
Join Date: Apr 2016
Old 11-18-2017 , 13:21   Re: random bonuses
Reply With Quote #3

Quote:
Originally Posted by Bobakanoosh View Post
What kind of random bonus?
random grenade, kevlar, $$

Quote:
Originally Posted by Bobakanoosh View Post
What do you mean by a nickname?
The point is that the player will add allienmoders to the nick and then get a random bonus in the new round
szogun is offline
xFlane
AlliedModders Donor
Join Date: Nov 2017
Location: Israel
Old 11-18-2017 , 15:10   Re: random bonuses
Reply With Quote #4

please check and let me know if it's working good.
you can edit the part of name by the define, the gifts, and their percentage.
Attached Files
File Type: sp Get Plugin or Get Source (RandomNickGifts.sp - 315 views - 2.3 KB)
xFlane is offline
szogun
Senior Member
Join Date: Apr 2016
Old 11-18-2017 , 16:35   Re: random bonuses
Reply With Quote #5

Quote:
Originally Posted by xFlane View Post
please check and let me know if it's working good.
you can edit the part of name by the define, the gifts, and their percentage.
I tested and noticed only one mistake
This error is displayed when we get a random weapon
You have received 1734436196$, because you have allienmoders in your name

Could you do that you can get only one random bonus
Now, we're still giving weapons and $$

HTML Code:
L 11/18/2017 - 22:27:37: [SM] Exception reported: String formatted incorrectly - parameter 5 (total 4)
L 11/18/2017 - 22:27:37: [SM] Blaming: RandomNickGifts.smx
L 11/18/2017 - 22:27:37: [SM] Call stack trace:
L 11/18/2017 - 22:27:37: [SM]   [0] PrintToChat
L 11/18/2017 - 22:27:37: [SM]   [1] Line 93, RandomNickGifts.sp::Event_Spawn

Last edited by szogun; 11-18-2017 at 16:36.
szogun is offline
xFlane
AlliedModders Donor
Join Date: Nov 2017
Location: Israel
Old 11-19-2017 , 01:16   Re: random bonuses
Reply With Quote #6

Quote:
Originally Posted by szogun View Post
I tested and noticed only one mistake
This error is displayed when we get a random weapon
You have received 1734436196$, because you have allienmoders in your name

Could you do that you can get only one random bonus
Now, we're still giving weapons and $$

HTML Code:
L 11/18/2017 - 22:27:37: [SM] Exception reported: String formatted incorrectly - parameter 5 (total 4)
L 11/18/2017 - 22:27:37: [SM] Blaming: RandomNickGifts.smx
L 11/18/2017 - 22:27:37: [SM] Call stack trace:
L 11/18/2017 - 22:27:37: [SM]   [0] PrintToChat
L 11/18/2017 - 22:27:37: [SM]   [1] Line 93, RandomNickGifts.sp::Event_Spawn
there's a one little fix i didn't notice,
except that, the plugin is working as expected,
try to use without any changes and then do your changes,
if it wouldn't work after you have changed it, upload it.
Attached Files
File Type: sp Get Plugin or Get Source (RandomNickGifts.sp - 339 views - 2.3 KB)

Last edited by xFlane; 11-19-2017 at 01:20.
xFlane is offline
szogun
Senior Member
Join Date: Apr 2016
Old 11-19-2017 , 09:55   Re: random bonuses
Reply With Quote #7

Okay, everything works great thanks
szogun is offline
szogun
Senior Member
Join Date: Apr 2016
Old 11-21-2017 , 13:41   Re: random bonuses
Reply With Quote #8

And one more question
I would like to add a condition to the bonus for allienmoders and allienmoders.com
But I do not know how to assign it using condition
szogun is offline
Reply


Thread Tools
Display Modes

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 11:44.


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