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

Ultimate VIP - v1.0.9, Updated 2/11 - 2010


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
NiQu
Veteran Member
Join Date: Nov 2009
Old 01-19-2010 , 15:37   Ultimate VIP - v1.0.9, Updated 2/11 - 2010
Reply With Quote #1

Description
This is a plugin for people who is sick of hiring admins.
This plugin is VIP for hns(dont have to be hns).
All VIP's will have a glowshell depending on their current team.
When VIP's kill someone they get 2 frags instead of 1, and they loose 1 death.
If you get killed by a VIP you will get 2 deaths instead of 1.
VIP's have a Mr.Smith model, the glowshell is to recognize the player as T or CT.
VIPs can use /shop to open a vip shop where they can buy stuff that normal players normally cant.
Type /vip for info on how to buy VIP.
Type /vips to see all vips online.

Notes
I am going to fix the bugs in it, if you find any new bugs just report them.
Please check the Known Bugs list before posting a bug!
And for those who wonders, the function F_Print is a short for Flaxans_Print, i have no idea why i named it that, just felt good to do
Admin.amxx is the original admin.amxx from the latest amxmodx with added amx_addvip.. however its not needed you can use amx_addadmin too because these two are the same commands with different names.

Please check the version number after every cvar, some cvars might only work in future versions and some of them might only work on one version.

The SMA file is ALWAYS the latest version, there is older versions if you like them more(unsupported), Download ZIP file not only SMA or the plugin will not work.

Special thanks to
wrecked_ for fixing a very important Function(FwdPlayerDeath).

Servers running my plugin! GameFreaks is my server!
Authors
Creator & Coder - Coten (NiQu)
Helper & Co-Coder - wrecked_
Auto Messager - GHW_Chronic
VIP Check(/vips) - OneEyed
Tester - RelaxMazteR (RelaxMazteR)
Increase VIP Bullets - xPaw

Commands
There's no special commands for it, use amx_addadmin <user/authid/steamid> <flags> to add a VIP.

Chat Commands
say /respawn //25% chance to respawn on zombiemod maps while dead. Respawn as CT.
say /revive //25% chance to respawn on zombiemod maps while dead. Respawn as CT.

Jailbreak CVARs
The jailbreak cvars does only work if you run a jailbreak map.
Quote:
vip_knifecost <num> //How much a knife should cost(v1.0.8+)
vip_hecost <num> //How much a HE grenade should cost(v1.0.8+)
vip_smokecost <num> //How much a smoke grenade should cost(v1.0.8+)
vip_flashcost <num> //How much a flashbang should cost(v1.0.8+)
vip_jbawpcost <num> //How much it should cost to gamble for AWP(v1.0.8+)
vip_jbdglcost <num> //How much it should cost to gamble for Deagle(v1.0.8+)
vip_m4a1cost <num> //How much it should cost to gamble for m4a1(v1.0.8+)
vip_ak47cost <num> //How much it should cost to gamble for ak47(v1.0.8+)


ZM/ZP CVARs
Quote:
vip_zmhp <num> //How much HP VIP player will start with every round.(v1.0.9+)
vip_zmap <num> //How much AP VIP player will start with every round.(v1.0.9+)
vip_zmhpkill <num> //How much HP VIP player gets per kill.(v1.0.9+)
vip_zmapkill <num> //How much AP VIP player gets per kill.(v1.0.9+)

Main CVARs

Quote:
remind_hud_length <num> //How many seconds between hud messages(v1.0.4+)
remind_text_length <num> //How many seconds between text messages(v1.0.4+)
remind_enable_hud <0/1> //0=disabled, 1=enabled (v1.0.4+)
vip_fragcost <num> //Set's the cost of buying frags in the vip shop (v1.0.5+)
vip_deathremovecost <num> //Set's the cost of removing deaths in the vip shop(v1.0.5+)
vip_enableweap <0/1> //0=disabled, 1=enabled(v1.0.6+)
vip_enablerespawn <0/1> //0=disabled, 1=enabled(v1.0.6+)
vip_awpcost <num> //How much the AWP will cost if vip_enableweap is set to 1(v1.0.6+)
vip_dglcost <num> //How much the deagle will cost if vip_enableweap is set to 1(v1.0.6+)
vip_respawncost <num> //How much respawn will cost if vip_enablerespawn is set to 1(v1.0.6+)
vip_models <0/1> //Whether to use smith vip models or not(v1.0.7+)

Installation
Semi-Auto:
Extract the .ZIP file in your cstrike.
Manual:
No manual, only semi-automatic.

Auto Messager
See Auto Message Displayer plugin, its all taken from that specific plugin so thanks to GHW_Chronic (see credits section for link).
For those who still dont understand how to format it, read that thread because its a perfectly fine tutorial in it that tells you how to add/remove messages.

Known Bugs(Green = Supposed Fixed, Red = Confirmed, Black = Unconfirmed)
Quote:
No known bugs!

Changelog

Quote:
1.0.9 - Plugins now works with zombiemod/zombieplague, any maps with "zm" or "zp" in them will make the plugin turn into a zombiemod/zombieplague vip plugin. No cvar to turn zm/zp mod on ot off, this happends automaticly. When zm/ap mod is on, type /respawn or /revive while dead to get 25% respawn chance. No matter what team you are in, vip players will get extra hp and ap at round start and for every kill, 4 cvars controlling this.
Most importent though is that we (me and wrecked_) have fixed all bugs.
--------
1.0.8 - Plugin now works with jailbreak, any maps with "jb" or "jail" in them will make the plugin turn into a jailbreak vip plugin. No cvar to turn jb mode on or off, this happends automaticly. When JB mode is on use /shop, /jbshop, or /jshop to open the shopmenu, otherwise use /vshop or /vipshop. Casino added, you can now gamble for weapons & items in jailbreak mode. See Menu #2 help file ingame to see chance to win.
--------
1.0.7 - Code Optimization's & added a cvar to turn on/off the vip model. New structure for the configs, all configs are now in a folder called extras in your cstrike folder.(DO NOT PUT IT IN ADDONS/AMXMODX/CONFIGS).
Also: amx_addvip was removed, just use amx_addadmin instead.
Deagle & AWP now gives full ammo & bpammo when buying from the vip shop.
--------
1.0.6 - Added weapon menu with AWP & Deagle in it.. price set by cvar. Added respawn option, price set by cvar also can only be used once a round. Weapon menu and respawn option can both be disabled with two cvars, see the cvar section. If your a VIP and you spawn with either a glock or a usp you will get 100 bpammo. Spawn with both weapons and you will get 100 bpammo in each. New format on the motd, i dont like txts and i belive its better to use the motd format. Some small modifications are made in the motd also, no major edits just take a look and you can see it.
--------
1.0.5 - VIP Shop added with 2 items. You can now buy frags and deathremoval. You set the prices by cvar(see cvar section).
Type: /shop, /vipshop or /vshop to open the shopmenu.
Please report any bugs!
--------
1.0.4 - Added support for /vips, type /vips in chat to see all VIPs online.
--------
1.0.3 - VIP Reminder that remindes everyone that your server is running this plugin and/or anything else you want people to know. See the Auto Reminder section for details on how to format your messages.
A few bugfixes aswell as the blockmaker stealth block I belive its fixed if i didnt upload wrong version it should now check glowshell and model every few seconds, i belive its every 20 seconds.
--------
1.0.2 - Code Optimazation and Code Improvements.
--------
1.0.1 - Removed Un-neccesary code //Not documented as a new version.
--------
1.0.0 - Initial Release //In the tutorial i wrote about amx_removeadmin, this isnt acutally done yet.
Attached Files
File Type: sma Get Plugin or Get Source (Ultimate_VIP.sma - 4930 views - 33.4 KB)

Last edited by ConnorMcLeod; 05-04-2013 at 09:44. Reason: Removed .amxx attachment
NiQu is offline
SpILL
Veteran Member
Join Date: Oct 2009
Location: Karachi, Pakistan
Old 01-19-2010 , 15:57   Re: VIP for Hide 'N' Seek
Reply With Quote #2

What you mean by,
Quote:
This plugin is VIP for hns(dont have to be hns).

Means this Plugin work with other Mods as well, i guess?
Edited: What about VIP Onlines /vip
__________________


SpILL is offline
RelaxMazteR
Member
Join Date: Jul 2009
Location: Sweden
Old 01-19-2010 , 16:18   Re: VIP for Hide 'N' Seek
Reply With Quote #3

Fake Meta does no function? And in this rythm_vip.txt (motd) has this no role either
h1
{
color: #00FF00;
font-size:large;
}

h2
{
color: #00FF00;
font-size: medium;
}

h3
{
color: #0096FF;
font-size: medium;
}
RelaxMazteR is offline
NiQu
Veteran Member
Join Date: Nov 2009
Old 01-19-2010 , 16:20   Re: VIP for Hide 'N' Seek
Reply With Quote #4

@SpiLL: It means its designed to work on HnS and its tested on HnS.. Im positive that you can use it on other mods to.

@RelaxMazteR: I forgot to delete fakemeta after some testing. I will remove those parts asap.

I need more features to be coded in this plugin, so please give me some ideas.

Last edited by NiQu; 01-19-2010 at 16:27.
NiQu is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 01-19-2010 , 16:27   Re: VIP for Hide 'N' Seek
Reply With Quote #5

Why do you precache the model twice? o_O
You can use a switch() instead of (else) if on teams.

You could also store it in a variable if user has the access as he joins the server and then set it to 0 when he leaves, instead of checking it all the time.

You also never set gbConnected to true, so how could it ever be true in get_Player?
__________________

Last edited by DarkGod; 01-19-2010 at 16:33.
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
NiQu
Veteran Member
Join Date: Nov 2009
Old 01-19-2010 , 16:33   Re: VIP for Hide 'N' Seek
Reply With Quote #6

@DarkGod: thanks for the tips i will look into it and see if i can improve it

about the double precache, i didnt see i typed it twice cuz i copied it so i didnt have to re-write it because i wanted to know what happend without precache.

Edit: @DarkGod: fixing that too i guess.

Edit: gbConnected is set to true in client_connect now (not published yet).

Edit: /vips will come as soon as i learned how to display players connected to a server , /vip is still to show the MOTD!

EDIT: 1.0.2 released, minor code improvments, more improvements in 1.0.3!

Last edited by NiQu; 01-20-2010 at 07:55.
NiQu is offline
NiQu
Veteran Member
Join Date: Nov 2009
Old 01-24-2010 , 16:17   Re: HnS VIP - 1.0.2 (Code Improval)
Reply With Quote #7

v1.0.3 Released:

Quote:
1.0.3 - VIP Reminder that remindes everyone that your server is running this plugin and/or anything else you want people to know. See the Auto Reminder section for details on how to format your messages.
A few bugfixes aswell as the blockmaker stealth block I belive its fixed if i didnt upload wrong version it should now check glowshell and model every few seconds, i belive its every 20 seconds.

Last edited by NiQu; 01-24-2010 at 16:26.
NiQu is offline
NiQu
Veteran Member
Join Date: Nov 2009
Old 01-25-2010 , 18:04   Re: Ultimate VIP - v1.0.4, Updated 1/25 - 2010
Reply With Quote #8

v1.0.5 Released:

Quote:
1.0.5 - VIP Shop added with 2 items. You can now buy frags and deathremoval. You set the prices by cvar(see cvar section).
Type: /shop, /vipshop or /vshop to open the shopmenu.
Please report any bugs!

v1.0.4 Released:


Quote:
1.0.4 - Added support for /vips, type /vips in chat to see all VIPs online.

Last edited by NiQu; 01-25-2010 at 22:05.
NiQu is offline
re333
Senior Member
Join Date: May 2009
Old 01-26-2010 , 01:14   Re: Ultimate VIP - v1.0.5, Updated 1/26 - 2010
Reply With Quote #9

NiQu

If i want to change ADMIN_LEVEL , which way i have to do ?

Cause in my server , VIP will get b flag .
re333 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-26-2010 , 01:36   Re: Ultimate VIP - v1.0.5, Updated 1/26 - 2010
Reply With Quote #10

Code:
    RegisterHam(Ham_Killed, "player", "FwdPlayerDeath", 1);

Code:
public FwdPlayerDeath(id, killer, level, cid)
{        if ( got_access[id] )     {
        if ( id == killer || killer == id )
        {
            return PLUGIN_HANDLED;
        }         else         {             if ( cs_get_user_deaths(killer) >= 1 )             {                 cs_set_user_deaths(killer, cs_get_user_deaths(killer) - 1);                 F_Print(killer, "VIP Bonus: +1 Frag");                 F_Print(killer, "VIP Bonus: -1 Death");             }             else             {                 F_Print(killer, "VIP Bonus: cannot remove anymore deaths");             }             set_user_frags(killer, get_user_frags(id) + 2);             cs_set_user_deaths(id, cs_get_user_deaths(id) + 1);             F_Print(id, "You got killed by a VIP!");         }     }
    return PLUGIN_CONTINUE;
}


Are you sure you know what's going one here ??
Also, what gonna happen when killer is not a player ??
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 12:30.


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