This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

How to add VIP classs?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ChubZz
Member
Join Date: Jul 2011
Old 07-31-2011 , 13:57   How to add VIP classs?
Reply With Quote #1

Hey, i seen this on a server before, could somebody tell me how to do this?

Thanks
Regards
Karl
ChubZz is offline
rhelgeby
Veteran Member
Join Date: Oct 2008
Location: 0x4E6F72776179
Old 07-31-2011 , 14:22   Re: How to add VIP classs?
Reply With Quote #2

Have a look at the group class attribute in the manual (zrdocs/zr_manual.htm). You can restrict some classes to a certain group. VIP players are then added as members in this group.
__________________
Richard Helgeby

Zombie:Reloaded | PawnUnit | Object Library
(Please don't send private messages for support, they will be ignored. Use the forum.)
rhelgeby is offline
Send a message via MSN to rhelgeby
ChubZz
Member
Join Date: Jul 2011
Old 07-31-2011 , 14:39   Re: How to add VIP classs?
Reply With Quote #3

Thanks for the reply, got it

Many thanks
have a nice day!
ChubZz is offline
rezkallah
Junior Member
Join Date: Jul 2011
Old 08-01-2011 , 18:02   Re: How to add VIP classs?
Reply With Quote #4

ok
rezkallah is offline
ChubZz
Member
Join Date: Jul 2011
Old 08-01-2011 , 18:12   Re: How to add VIP classs?
Reply With Quote #5

I have been trying for hours but i cant get it to work. I cant figure out how to layout the vip class in the admin_groups.cfg and i cant figure out how to make it zr_vip, or add players to it.

Do you have one you could send me, or could you help me out in someway?

Thanks
Regards
chubzz
ChubZz is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 08-01-2011 , 19:02   Re: How to add VIP classs?
Reply With Quote #6

This is how we had our ViP group setup

admin_group
Code:
"vip"
	{
		/**
		 * You can override commands and command groups here.
		 * Specify a command name or group and either "allow" or "deny"
		 * Examples:
		 * 		":CSDM"			"allow"
		 *		"csdm_enable"	"deny"
		 */
		 Overrides
		 {
		 }
		"flags"			"t"

		/* Largish number for lots of in-between values. */
		"immunity"		"10"
	}
admin_simple
Code:
//vip players
STEAM_0:1:XXXX "10@vip"//Person1
STEAM_0:1:XXXX "10@vip"//Person2
STEAM_0:0:XXXX "10@vip"//Person3
zr models.txt
Code:
    "slow_feralghoul"
    {
	"name"      "slow"
	"path"      "models/player/slow/fallout_3/ghoul/"
	"team"      "zombies"
	"access"    "public"
	"group"     "vip"
    }
    "slow_GhostRecon"
    {
	"name"      "ct_urban"
	"path"      "models/player/Graw/"
	"team"      "humans"
	"access"    "public"
	"group"     "vip"
    }
zr playerclasses
Code:
    "zombie_vip"
    {
        // General
        "enabled"               "yes"
        "team"                  "0"
        "team_default"          "no"
        "flags"                 "0"
        "group"                 "vip"
        
        "name"                  "ViP"
        "description"           "ViP"
        
        // Model
        "model_path"            "models/player/slow/fallout_3/ghoul/slow.mdl"
        //"model_path"            "models/player/zh/zh_charple001.mdl"
        "alpha_initial"         "255"
        "alpha_damaged"         "255"
        "alpha_damage"          "0"
        
        // Hud
        "overlay_path"          ""
        "nvgs"                  "no"
        "fov"                   "90"
        
        // Effects
        "has_napalm"            "no"
        "napalm_time"           "8"
        
        // Player behaviour
        "immunity_mode"         "0"
        "immunity_amount"       "0.0"
        "no_fall_damage"        "yes"
        
        "health"                "5000"
        "health_regen_interval" "2"
        "health_regen_amount"   "10"
        "health_infect_gain"    "500"
        "kill_bonus"            "1"
        
        "speed"                 "350"
        "knockback"             "3.5"
        "jump_height"           "1.1"
        "jump_distance"         "1.1"
    }

    "human_vip"
    {
        // General
        "enabled"               "yes"
        "team"                  "1"
        "team_default"          "yes"
        "flags"                 "0"
        "group"                 "vip"      // Write the name of a SourceMod group for vip players ("zr_vip"), then make it in SourceMod.
        
        "name"                  "VIP Human"
        "description"           "Human class for important players"
        
        // Model
        "model_path"            "models/player/Graw/ct_urban.mdl"
        "alpha_initial"         "255"
        "alpha_damaged"         "255"
        "alpha_damage"          "0"
        
        // Hud
        "overlay_path"          ""
        "nvgs"                  "no"
        "fov"                   "90"
        
        // Effects
        "has_napalm"            "yes"
        "napalm_time"           "0.0"
        
        // Player behaviour
        "immunity_mode"         "0"
        "immunity_amount"       "0.0"
        "no_fall_damage"        "yes"
        
        "health"                "150"
        "health_regen_interval" "1.0"
        "health_regen_amount"   "10"
        "health_infect_gain"    "0"
        "kill_bonus"            "1"
        
        "speed"                 "315"
        "knockback"             "0"
        "jump_height"           "1.0"
        "jump_distance"         "1.0"
    }
and zr downloads.txt for the above two skins
Code:
//S-LoW's Ghost_Recon - ViP Human Skin
models/player/Graw/ct_urban.dx80.vtx
models/player/Graw/ct_urban.dx90.vtx
models/player/Graw/ct_urban.mdl
models/player/Graw/ct_urban.phy
models/player/Graw/ct_urban.sw.vtx
models/player/Graw/ct_urban.vvd
materials/models/player/Graw/body.vmt
materials/models/player/Graw/body.vtf
materials/models/player/Graw/body_normal.vtf
materials/models/player/Graw/face.vtf
materials/models/player/Graw/face.vmt
materials/models/player/Graw/forearms.vmt
materials/models/player/Graw/forearms.vtf
materials/models/player/Graw/forearms_normal.vtf
materials/models/player/Graw/gear.vtf
materials/models/player/Graw/gear.vmt
materials/models/player/Graw/gear_normal.vtf
materials/models/player/Graw/glasses.vmt
materials/models/player/Graw/glasses.vtf
materials/models/player/Graw/glasses_normal.vtf
materials/models/player/Graw/google01.vtf
materials/models/player/Graw/google01.vmt
materials/models/player/Graw/google01_ref.vtf
materials/models/player/Graw/google02.vtf
materials/models/player/Graw/google02.vmt
materials/models/player/Graw/google02_ref.vtf
materials/models/player/Graw/hands.vmt
materials/models/player/Graw/hands.vtf
materials/models/player/Graw/hands_normal.vtf
materials/models/player/Graw/helmet.vmt
materials/models/player/Graw/helmet.vtf
materials/models/player/Graw/helmet_normal.vtf

//S-LoW's Feral Ghoul - ViP Zombie Skin
//materials/models/player/slow/fallout_3/ghoul/slow_body.vmt
//materials/models/player/slow/fallout_3/ghoul/slow_body.vtf
//materials/models/player/slow/fallout_3/ghoul/slow_pants.vmt
//materials/models/player/slow/fallout_3/glowing_one/slow_body_bump.vtf
//materials/models/player/slow/fallout_3/glowing_one/slow_pants.vtf
//models/player/slow/fallout_3/ghoul/slow.dx80.vtx
//models/player/slow/fallout_3/ghoul/slow.dx90.vtx
//models/player/slow/fallout_3/ghoul/slow.mdl
//models/player/slow/fallout_3/ghoul/slow.phy
//models/player/slow/fallout_3/ghoul/slow.sw.vtx
//models/player/slow/fallout_3/ghoul/slow.vvd
TnTSCS is offline
ChubZz
Member
Join Date: Jul 2011
Old 08-01-2011 , 22:45   Re: How to add VIP classs?
Reply With Quote #7

Oh my god, thank you so much mate. So helpful

Best regards
karl
ChubZz is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 08-02-2011 , 00:15   Re: How to add VIP classs?
Reply With Quote #8

be advised, those are just a portion of the files not the complete file... just the parts related to vip stuff
TnTSCS is offline
ChubZz
Member
Join Date: Jul 2011
Old 08-02-2011 , 11:42   Re: How to add VIP classs?
Reply With Quote #9

Yes i know, im just going to paste them in where appropriate and change the model.
ChubZz 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 22:45.


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