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

Surf Vip v1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands       
Baws
Veteran Member
Join Date: Oct 2012
Old 10-11-2013 , 18:15   Surf Vip v1.1
Reply With Quote #1

Simple Surf Vip v1.1



-Description-

This is a Surf Vip plugin made for surf servers. In this plugin i made 2 different codes, one mainly made for a Surf SpeedRun server and the other is for any Surf Server. There is no menu for weapons, there's no restrictions and etc...But on spawn or round start, this plugin gives you 3 nades all kind. This plugin got a VIP tag before your name to make you feel as a VIP and be a cool guy.

I did 2 plugins. One is the Surf Vip and the other one is Surf Vip but for SpeedRun servers wich mostly the basic stuff for a vip on a speedrun server. It got VIP on score board and a VIP skin.


-Cvars-

Main:
Code:
surfvip_hp_per_hs "30" - Health added with a head shot kill from vip. Default 30.
surfvip_hp_per_kill "15" - Health added with a normal kill from vip. Default 15.
surfvip_money_per_hs "500" - Money added for headshot kill from vip. Default 500.
surfvip_money_per_kill "200" - Money added for normal kill from vip. Default 200.
-Commands-

For the 2 VIP Plugins:
Code:
/vip - To show from chat all vips online separated by a ','
/vips - To show from chat all vips online separated by a ','

/wantvip - To let an MOTD come up with all the information needed to get VIP.
/viphelp - To let an MOTD come up with all the information needed to get VIP.
-Installation-

Put the .amxx in cstrike/addons/amxmodx/plugins
-Then in cstrike/addons/amxmodx/configs/plugins.ini
You will type:
PHP Code:
Custom Add 3rd party plugins here.

SurfVip.amxx
      
or
SurfSpeedRunVip.amxx 
Then put the .txt file in cstrike/addons

-Requirements-

Main:
PHP Code:
#include < amxmodx >
#include < amxmisc >
#include < fakemeta >
#include < fun >
#include < geoip >
#include < cstrike >
#include < colorchat >
#include < hamsandwich > 
SpeedRun VIP:
PHP Code:
#include < amxmodx >
#include < amxmisc >
#include < geoip >
#include < cstrike >
#include < colorchat > 
-ScreenShots-

[IMG]http://**************/scaled/landing/94/axdg.jpg[/IMG]
[IMG]http://**************/scaled/landing/845/ntcy.jpg[/IMG]
[IMG]http://**************/scaled/landing/853/8lsv.jpg[/IMG]
[IMG]http://**************/scaled/landing/27/zhib.jpg[/IMG]
[IMG]http://**************/scaled/landing/594/ugk8.jpg[/IMG]



-Notes-

Note that if you are getting the Surf Vip that you can change the VIPs spawn health by changing the following line or number from the line:
PHP Code:
/* Here you can edit the '100' to w/e you want the VIP to have at spawn or round start. It's his health */
#define VIP_HEALTH    ( 100 ) 
If you don't like the default VIP skin in the SpeedRun vip plugin. You can change it by following the steps i will tell you now.

Step 1:
Open the .sma and edit it by following the next step.

Step 2:
Once you have opened the .sma go to these lines of it:
PHP Code:
public plugin_precache( ) 
{
        
precache_model"models/player/vip/vip.mdl" )

        return 
PLUGIN_CONTINUE
}

public 
VipModelidlevelcid 
{
        if ( 
get_user_flagsid ) & VIP_ACCESS 
        {
                new 
CsTeams:userTeam cs_get_user_teamid )
                if( 
userTeam == CS_TEAM_CT 
                {
                        
cs_set_user_modelid"vip" )
                }
                else 
                {
                        
cs_reset_user_modelid )
                }
        }
        return 
PLUGIN_CONTINUE

Step 3:
Once you have went to those lines, you will see first the plugin_precache. Once you see it, you have to change the file to the file name your model in. Example:
PHP Code:
public plugin_precache( ) 
{
        
precache_model"models/player/yourmodel/yourmodel.mdl" )

        return 
PLUGIN_CONTINUE

Step 4:
Once you have changed what i told you in Step 3 well we are almost done. Now we will go to VipModel. You have to change the "vip" to the model file you have. Example:
PHP Code:
public VipModelidlevelcid 
{
        if ( 
get_user_flagsid ) & VIP_ACCESS 
        {
                new 
CsTeams:userTeam cs_get_user_teamid )
                if( 
userTeam == CS_TEAM_CT 
                {
                        
cs_set_user_modelid"yourmodel" )
                }
                else 
                {
                        
cs_reset_user_modelid )
                }
        }
        return 
PLUGIN_CONTINUE

The name has to be the same as the name you puted in the plugin_precache.

-Credits-
  • - Allied-Gamers people for testing the plugins.
  • zz
  • Nguyan
  • Smurfff
  • [Ian-kun³]
  • GENiX714
  • MrShakuRR
  • TeddyBear
  • Octavia
  • Player 2
  • - Kamelot & MrShakuRR for helping with MoneyBonus.

-ChangeLog-

Main:
Code:
v1.0
* Released.
v1.1
* Fixed the crash.
* Fixed the message bonus.
* Fixed little of the code.
* Added a nice intro in the code.
SpeedRun VIP:
Code:
v1.0
* Released.
v1.1
* Added a nice intro in the code.
-Thank you, Baws.
Attached Files
File Type: inc colorchat.inc (2.3 KB, 367 views)
File Type: txt vipinfo.txt (1.0 KB, 313 views)
File Type: sma Get Plugin or Get Source (SurfVip.sma - 1253 views - 14.5 KB)
File Type: sma Get Plugin or Get Source (SurfSpeedRunVip.sma - 1085 views - 12.5 KB)
File Type: zip Surf Vip By Baws v1.1.zip (7.2 KB, 334 views)
__________________
Like my clean plugins and work?

Last edited by Baws; 05-10-2014 at 11:44.
Baws is offline
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 10-12-2013 , 06:09   Re: Surf Vip v1.0
Reply With Quote #2

another vip plugin :/
__________________

Check out My Plugins:
qServerInfo ; ASKTAG
quark is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 10-12-2013 , 17:14   Re: Surf Vip v1.0
Reply With Quote #3

You should not release plugins like this because there's just other plugins putted in one. It's useless. You can create something like this for learning purpose.

Last edited by ~Ice*shOt; 10-12-2013 at 17:15.
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 10-12-2013 , 17:39   Re: Surf Vip v1.0
Reply With Quote #4

can you edit for me something?
if admin_kick connect that show VIP on tag
if admin_level_f that show admin on tag
if admin_ban that show superadmin
if admin_rcon that show manger
last admin_inn that show owner

and gl nice plugin
Snitch is offline
Send a message via Skype™ to Snitch
Baws
Veteran Member
Join Date: Oct 2012
Old 10-12-2013 , 21:14   Re: Surf Vip v1.0
Reply With Quote #5

Quote:
Originally Posted by ~Ice*shOt View Post
You should not release plugins like this because there's just other plugins putted in one. It's useless. You can create something like this for learning purpose.
Actually i already know there is other plugins but this is not the same. This is simple surf vip with no menus or guns or anything. It's one simple surf vip for everyone to have fun with.


@Snitch, i will do your request once i'm done working with the latest report.



**IMPORTANT** DO NOT USE THIS PLUGIN IN YOUR SERVER FOR NOW, ME AND MY FELLAS HAVE FOUND A SERVER CRASH GLITCH FROM THIS PLUGIN. PLEASE WAIT UNTIL IT'S FIXED THANK YOU!
__________________
Like my clean plugins and work?

Last edited by Baws; 05-10-2014 at 11:47.
Baws is offline
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 10-13-2013 , 06:35   Re: Surf Vip v1.0
Reply With Quote #6

@baws
thanks if u want send me the code to pm
I need just the tag name without of others things
Snitch is offline
Send a message via Skype™ to Snitch
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 10-13-2013 , 08:49   Re: Surf Vip v1.0
Reply With Quote #7

Quote:
Originally Posted by Snitch View Post
@baws
thanks if u want send me the code to pm
I need just the tag name without of others things
Use IChat instead
__________________
Jhob94 is offline
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 10-13-2013 , 13:08   Re: Surf Vip v1.0
Reply With Quote #8

Quote:
Originally Posted by Jhob94 View Post
Use IChat instead
Use admin chat tag instead these.
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
Baws
Veteran Member
Join Date: Oct 2012
Old 10-13-2013 , 13:47   Re: Surf Vip v1.0
Reply With Quote #9

Quote:
Originally Posted by Snitch View Post
@baws
thanks if u want send me the code to pm
I need just the tag name without of others things
So what you want is the connect messages or just the name tags?
__________________
Like my clean plugins and work?
Baws is offline
Baws
Veteran Member
Join Date: Oct 2012
Old 10-13-2013 , 14:01   Re: Surf Vip v1.0
Reply With Quote #10

Here's the Tags and Connection messages. For the Tags i suggest you use Admin Prefixes: http://forums.alliedmods.net/showthread.php?t=183491

For the connections here you go. The 2 plugins are not tested but done.
Attached Files
File Type: sma Get Plugin or Get Source (TagsandConnections.sma - 849 views - 7.6 KB)
File Type: sma Get Plugin or Get Source (MultiConnect.sma - 865 views - 3.8 KB)
__________________
Like my clean plugins and work?
Baws 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 08:41.


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