AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   EFFx's VIP (https://forums.alliedmods.net/showthread.php?t=284336)

EFFx 06-24-2016 12:24

EFFx's VIP
 
2 Attachment(s)
EFFX's VIP v2.0

Description:
This plugin is a VIP made by me from 0. Features:

Code:

1. Respawn Bonus

When you're respawning, you receive full armor pack + if you is ct, free defuse kit + different model.

2. Menu

Special Items with menu ( say /vipmenu for show )
The menu have:

1. Weapons
2. Special Items

Weapons:
AK47  + Deagle + All greandes
M4A1 + Deagle + All Grenades
AWP + Deagle + All Grenades

You can choose your equipament 1x per round.

Items:
BunnyHop - Auto bhop
MultiJump - Three jumps
HP Regenerate - +2 HP per second
No Damage - You dont lose hp per 15 second
And Immobilize - You can immobilize your enemy with a shot

All items have a price ( VIPMoney )

But whats VIPMoney?

VIPMoney is a new money system for my VIP, you receive +15 VM per kill ( just change the cvar )

3. ScreenFade after kill

When you kill a enemy, will get a ScreenFade, red for Terrorist and blue for Counter-Terrorist

4. After you connect, the plugin will show a message only for you + a sound:
Hello X ( player name ), how are you today?! Type /vipmenu for show your menu!

5. Saying /vips, you can see the vips online ( All players )

6. A hud message will show your VIPMoney over the money ( controlled by cvar, 1/0 )

7. A admin can add/remove your vip with the command amx_vip <player> or <@ALL> <1/0>

8. A admin can reset all VIPS's Money and Items from nvault data ( amx_resetdata )

9. If you arent VIP, the plugin have a system of experience that you will got random experience per kill ( 25 and 80 ), and a hudmessage showing your Experience.
If you  got X experience ( controlled by cvar ) you will got VIP

10. After the map starts, the plugin will exec a config with all cvars ( configs/VIPCfgs ), if haven't this config on your config folder, the plugin will stop run.

Cvars:

Code:

// Show VIP Money? 0/1
vip_showmoney "1"

// Ammount of Health Per kill ( VIP )
vip_killhpbonus "25"

// Ammount of Armor Per kill ( VIP )
vip_killapbonus "25"

// Ammount of VIP Money per kill
vip_vipmoneybonus "15"

// Ammout of max hp when you're using HP Regenerate
vip_hpregenmax "100"

// Ammount of hp that you want add when you're using HP Regenerate
vip_hpregenadd "2"

// Max experience for you get VIP
vip_maxexperience "12500"

// Prefix on all messages
vip_prefixchat "[EFFxVIP]"

Includes:
Code:

#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <engine>
#include <fakemeta>
#include <hamsandwich>
#include <nvault>
#include <fun>

Change Log:
Code:

- v0.8 : Badly codded, unknown function: remove_frozen
- v0.9 : Removed useless cvars
- v1.0 - Removed useless cvars
- v1.1 - Removed Always with bomb, for what ? If have 4-6 vip on the  server, how will be? We can add random VIP, but will be useless that. Removed useless cvars, added sound when VIP connect ( only for him ) and updated the code.
- v1.2 - Fixed the player with VIPModel when admin has deactived him's VIP
- v1.3 - After your spawn, the VIP menu open automatic, you can use No Damage only 1x per round, fixed the bug at the hud message ( negative and infinit numbers )
- v1.4 - Fixed the sound when VIP connect
- v2.0 - New way to reset player's model, Added @ALL command for if the admin want to active/deactive VIP of all players, just use amx_vip @ALL 1/0, Fixed the /vips ( was not showing ), Only one item per time, if you use bunnyhop and want to use multijup, the bunnyhop will be off, Added a sound when X player has got admin, Added a hud when you're dead showing your target ( who you're spectating ) him's VIPMoney and VIP Item ( if is vip ), if him inst vip, show him's experience, and again, fixed the code format

Commands:

Code:

amx_resetdata - You can reset all VIPMoney and VIP Items from nvault data
amx_vips <nick>|<@ALL> <1/0> - You can add/remove vip from X player/All players



PS: This plugin were for fun, but i posted here for you guys.

EFFx 06-24-2016 14:51

Re: EFFx's VIP
 
Plugin updated

UPDATES:

Code:

1. Fixed the unknown function: remove_frozen
2. Removed the cvar vip_killbonus, for what block the VIPMoney? :)


EFFx 06-24-2016 18:30

Re: EFFx's VIP
 
Updated again

UPDATES:

Code:

1. Removed always with bomb, if have 4-6 vips on this server? How will be?
2. Removed Cvar vip_spawnbonus
3. Removed Cvar vip_spawnmodel
4. Added sound when VIP connect
5. Fixed the code format.


Kakarot47 06-24-2016 18:57

Re: EFFx's VIP
 
Nice JOB :D

EFFx 06-24-2016 19:40

Re: EFFx's VIP
 
Updated again

UPDATES:

Code:

1. Fixed the model when admin has removed player's VIP
2. Fixed the bug on the hud ( infinite countdown with negative number ), fixed with "a",15 at the set_task
3. Fixed the sound at connect
4. The menu open automatic at the spawn
5. When you select a Item, the menu open again
6. You can use the No Damage only 1x per round.


EFFx 06-24-2016 22:03

Re: EFFx's VIP
 
New plugin update

UPDATES:
Code:

1. New way to reset players models when admin has reseted him's VIP
2. Added @ALL arg at amx_vip. If the admin want to add/remove VIP to all players on the server, just use amx_vip @ALL 1/0
3. Fixed the /vips ( Not was showing all VIPS, only 1 )
4. You can use only ONE ITEM PER TIME,If you are using HP Regen and want to use BunnyHop, the HP Regen will be off. And if you're using No Damage, you need to wait him finish for use others items ( is better for you )
5. Added a sound when X player has got admin with experience
6. Added a hud when you're dead showing your target ( who you're spectating ) him's VIPMoney and VIP Item ( if is vip ), if him inst vip, show him's experience.
7. And again ¬¬ code fixed, much errors.

P.S : Its my first normal plugin that i posted here, so i want to make him the best. So cause it i've made all updated possibles for approve.

Artizy 06-25-2016 17:37

Re: EFFx's VIP
 
Good job bro'
I think this is the best vip plugin.

EFFx 06-25-2016 17:39

Re: EFFx's VIP
 
Thanks, i'll add translations later.
I'll wait the approvers say something.

siriusmd99 06-26-2016 02:39

Re: EFFx's VIP
 
If its coded well then i think 1 more vip plugin wont be useless because owners have a lot of choice.

But before aprovement i think you must change this(remove your credits)

vip_prefixchat "[EFFxVIP]"

HamletEagle 06-26-2016 03:19

Re: EFFx's VIP
 
That looks like a huge copy/paste. Also, just by fastly reading the code I can tell you that you have no ideea what you are doing.

I honestly don't know where to start to improve this. I think you should just rewrite it after you learn more and understand basic things. You can open a topic in Scripting Help forum if you feel like you need someone to guide you.

Unapproved.


All times are GMT -4. The time now is 16:58.

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