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

View Poll Results: Is making a poll in a plugin release thread stupid ?
Yes 0 0%
Yes 1,337 100.00%
Yes 0 0%
Yes 0 0%
Voters: 1337. You may not vote on this poll

Pro become VIP // unsupported


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
didoWEE
Senior Member
Join Date: Oct 2012
Location: Bulgaria
Old 02-03-2013 , 16:13   Pro become VIP // unsupported
Reply With Quote #1

Pro become VIP
by didoWEE

[Description]
When somebody reaches a certain number of frags, he become VIP.
The purpose of this plugin is to make the people more regular and to reward them for the spent time in the server.
[Cvars]
Needed kill to become VIP
amx_kills (default: 500)

The flags which you get when you become VIP
amx_kills_flags (default: bi)

Save type [1 - by name / 2 - by IP / 3 - by SteamID]
amx_kills_savetype (default: 3)

Expire days
amx_kills_expiredays
(default: 10)
[Credits]
  • SpeeDeeR - Little help

[Enabling VIP Models]
Enabled
Code:
#define VIP_MODELS

Disabled
Code:
// #define VIP_MODELS
[Enabling dhudmessages]
Enabled
Code:
#define DHUDMESSAGES
Disabled
Code:
// #define DHUDMESSAGES

NOTE: You have to edit by yourself and compile locally if you want to enable the models or/and the dhudmessages


Last edited by YamiKaitou; 10-31-2014 at 11:08.
didoWEE is offline
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 02-04-2013 , 03:10   Re: Pro become VIP
Reply With Quote #2

Nice Idea!!....

if i still had a server id deff try it out.
Blizzard_87 is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 02-04-2013 , 04:00   Re: Pro become VIP
Reply With Quote #3

PHP Code:
ShowHud(id)
{
    
#if defined DHUDMESSAGE
        
set_hudmessage(23502350.250.5003.05.00.00.0);
        
show_hudmessage(id"Reach %i kills and become VIP^nYour have: %i kills"get_pcvar_num(p_kills_for_vip), g_kills[id]);
    
#else
        
set_hudmessage(23502350.250.5003.05.00.00.0, -1);
        
show_hudmessage(id"Reach %i kills and become VIP^nYour have: %i kills"get_pcvar_num(p_kills_for_vip), g_kills[id]);
    
#endif

LOL

nice plugin, but useless to servers with many hackers [Non-steam servers without any anti-cheat] (Hackers can be vip's lol)
__________________
simanovich is offline
didoWEE
Senior Member
Join Date: Oct 2012
Location: Bulgaria
Old 02-04-2013 , 04:31   Re: Pro become VIP
Reply With Quote #4

Quote:
Originally Posted by simanovich View Post
PHP Code:
ShowHud(id)
{
    
#if defined DHUDMESSAGE
        
set_hudmessage(23502350.250.5003.05.00.00.0);
        
show_hudmessage(id"Reach %i kills and become VIP^nYour have: %i kills"get_pcvar_num(p_kills_for_vip), g_kills[id]);
    
#else
        
set_hudmessage(23502350.250.5003.05.00.00.0, -1);
        
show_hudmessage(id"Reach %i kills and become VIP^nYour have: %i kills"get_pcvar_num(p_kills_for_vip), g_kills[id]);
    
#endif

fixed
didoWEE is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 02-09-2013 , 15:25   Re: Pro become VIP
Reply With Quote #5

Line 7: #define DHUDMESSAGE
You should put //#define DHUDMESSAGE for player dont need compile localy if doesnt want use it.
Same for models ;)
__________________
Jhob94 is offline
didoWEE
Senior Member
Join Date: Oct 2012
Location: Bulgaria
Old 02-09-2013 , 16:23   Re: Pro become VIP
Reply With Quote #6

Quote:
Originally Posted by Jhob94 View Post
Line 7: #define DHUDMESSAGE
You should put //#define DHUDMESSAGE for player dont need compile localy if doesnt want use it.
Same for models ;)
Yes, you are right. I'll do it on Monday because I'm not on my PC at the weekends.
didoWEE is offline
didoWEE
Senior Member
Join Date: Oct 2012
Location: Bulgaria
Old 02-10-2013 , 14:02   Re: Pro become VIP
Reply With Quote #7

Update
  • Little optimization

Last edited by didoWEE; 03-05-2013 at 13:35. Reason: Update
didoWEE is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 02-12-2013 , 11:46   Re: Pro become VIP
Reply With Quote #8

Suggestion:
Do it with cvars only and make it logs some cfg so it would me much more easy for use ;)
__________________
Jhob94 is offline
didoWEE
Senior Member
Join Date: Oct 2012
Location: Bulgaria
Old 02-12-2013 , 14:08   Re: Pro become VIP
Reply With Quote #9

I can make it with cvars but if you enable the models (while the server is enabled), it may disconnect the players because the models are not downloaded. And for the dhudmessage, if you enable it (while the server is enabled), idk how to detect that the cvar is changed and then to include them

Last edited by didoWEE; 02-12-2013 at 14:09.
didoWEE is offline
chungsy
Member
Join Date: Nov 2011
Old 02-13-2013 , 03:32   Re: Pro become VIP
Reply With Quote #10

Nice plugin, I like it very much.

Can you also add a cvar that counts the player's time played instead of counting the frags? (or separate sma)

Also awards those REGULARS with a different MODEL/ ADMIN ACCESS would be a good idea.

Last edited by chungsy; 02-13-2013 at 03:35.
chungsy is offline
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 05:08.


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