Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Zombie VIP 1.9.1


Post New Thread Reply   
 
Thread Tools Display Modes
Russiaboy
BANNED
Join Date: May 2009
Location: ZombiePlague is my Home
Old 05-05-2010 , 13:03   Re: [ZP] Zombie VIP 1.6
Reply With Quote #171

Quote:
Originally Posted by aaarnas View Post
Guide how to remake zombie class for vips or admins only.

First what we need is depend witch mode are you using.
If MODE 1 is enabled (also MODE 3 enables MODE 1 too) plugin has itself authentication, so add thease codes to your zombie class plugin:
PHP Code:
#include <zmvip>

public zp_user_infect_attempt(id) {
    if(
zv_get_user_flags(id) > 0zp_set_user_zombie_class(id0)
    else 
client_print(idprint_chat"Your selected class in only for *VIP* members")

If you want to let the player have a class with a specific flag do like this:
Code:
if(zv_get_user_flags(id) & ZV_MAIN)
if(zv_get_user_flags(id) & ZV_MULTI)
...
Code:
#define ZV_MAIN          "a"
#define ZV_MULTI         "b"
#define ZV_UNLIMITED     "c"
#define ZV_DAMAGE        "d"
Now if you are using default amx authentication (MODE 0 or 2) do like this:
PHP Code:
public zp_user_infect_attempt(id) {
    if(
get_user_flags(id) & ADMIN_LEVEL_Hzp_set_user_zombie_class(id0)
    else 
client_print(idprint_chat"Your selected class in only for *VIP* members")

ADMIN_LEVEL_H is default t flag in users.ini file. It mostly using for vip plugins. Sure you can set this flag to what you want. If you want to make it for admins only, write ADMIN_IMMUNITY instead of ADMIN_LEVEL_H
Thank you for tut!
Russiaboy is offline
Send a message via MSN to Russiaboy Send a message via Skype™ to Russiaboy
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 05-05-2010 , 13:58   Re: [ZP] Zombie VIP 1.6
Reply With Quote #172

Quote:
Originally Posted by aaarnas View Post
Guide how to remake zombie class for vips or admins only.

First what we need is depend witch mode are you using.
If MODE 1 is enabled (also MODE 3 enables MODE 1 too) plugin has itself authentication, so add thease codes to your zombie class plugin:
PHP Code:
#include <zmvip>
 
public zp_user_infect_attempt(id) {
    if(
zv_get_user_flags(id) > 0zp_set_user_zombie_class(id0)
    else 
client_print(idprint_chat"Your selected class in only for *VIP* members")

If you want to let the player have a class with a specific flag do like this:
Code:
if(zv_get_user_flags(id) & ZV_MAIN)
if(zv_get_user_flags(id) & ZV_MULTI)
...
Code:
#define ZV_MAIN          "a"
#define ZV_MULTI         "b"
#define ZV_UNLIMITED     "c"
#define ZV_DAMAGE        "d"
Now if you are using default amx authentication (MODE 0 or 2) do like this:
PHP Code:
public zp_user_infect_attempt(id) {
    if(
get_user_flags(id) & ADMIN_LEVEL_Hzp_set_user_zombie_class(id0)
    else 
client_print(idprint_chat"Your selected class in only for *VIP* members")

ADMIN_LEVEL_H is default t flag in users.ini file. It mostly using for vip plugins. Sure you can set this flag to what you want. If you want to make it for admins only, write ADMIN_IMMUNITY instead of ADMIN_LEVEL_H
Atleast youre tutorial is better then Zombiezz one
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
aaarnas
Veteran Member
Join Date: Jun 2008
Location: Lithuania
Old 05-05-2010 , 14:21   Re: [ZP] Zombie VIP 1.6
Reply With Quote #173

Quote:
Originally Posted by abdul-rehman View Post
Atleast youre tutorial is better then Zombiezz one
This is irony? This tut is for this plugin. Zombiezz, or how you calling he is just how to make class, not how to set access to it.
__________________
My plugins:
[ZP] ZM_VIP (v2.0.0 is comming. v1.9.1 BETA is out!)

aaarnas is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 05-05-2010 , 14:22   Re: [ZP] Zombie VIP 1.6
Reply With Quote #174

Zombiezzz is a Copy paste person who only knows how to copy paste only
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
aaarnas
Veteran Member
Join Date: Jun 2008
Location: Lithuania
Old 05-05-2010 , 14:26   Re: [ZP] Zombie VIP 1.6
Reply With Quote #175

Ok...
__________________
My plugins:
[ZP] ZM_VIP (v2.0.0 is comming. v1.9.1 BETA is out!)

aaarnas is offline
AfteR.
Veteran Member
Join Date: Dec 2008
Location: λ
Old 05-05-2010 , 14:29   Re: [ZP] Zombie VIP 1.6
Reply With Quote #176

AfteR. is offline
ArTi
Junior Member
Join Date: Jan 2010
Location: Poland
Old 05-07-2010 , 12:50   Re: [ZP] Zombie VIP 1.6
Reply With Quote #177

Quote:
Originally Posted by aaarnas View Post
Guide how to remake zombie class for vips or admins only.

First what we need is depend witch mode are you using.
If MODE 1 is enabled (also MODE 3 enables MODE 1 too) plugin has itself authentication, so add thease codes to your zombie class plugin:
PHP Code:
#include <zmvip>

public zp_user_infect_attempt(id) {
    if(
zv_get_user_flags(id) > 0zp_set_user_zombie_class(id0)
    else 
client_print(idprint_chat"Your selected class in only for *VIP* members")

If you want to let the player have a class with a specific flag do like this:
Code:
if(zv_get_user_flags(id) & ZV_MAIN)
if(zv_get_user_flags(id) & ZV_MULTI)
...
Code:
#define ZV_MAIN          "a"
#define ZV_MULTI         "b"
#define ZV_UNLIMITED     "c"
#define ZV_DAMAGE        "d"
Now if you are using default amx authentication (MODE 0 or 2) do like this:
PHP Code:
public zp_user_infect_attempt(id) {
    if(
get_user_flags(id) & ADMIN_LEVEL_Hzp_set_user_zombie_class(id0)
    else 
client_print(idprint_chat"Your selected class in only for *VIP* members")

ADMIN_LEVEL_H is default t flag in users.ini file. It mostly using for vip plugins. Sure you can set this flag to what you want. If you want to make it for admins only, write ADMIN_IMMUNITY instead of ADMIN_LEVEL_H
In ZP 4.2 is doesn't work. How make this class into ZP 4.2?
__________________

ArTi is offline
artos
Senior Member
Join Date: Mar 2010
Old 05-07-2010 , 12:52   Re: [ZP] Zombie VIP 1.6
Reply With Quote #178

Quote:
Originally Posted by ArTi View Post
In ZP 4.2 is doesn't work. How make this class into ZP 4.2?
PL:

Czemu używasz do tej pory wersji 4.2? Lepiej zmień na 4.3

ENG:

Why are you still using 4.2 version? Better change to 4.3
__________________
artos is offline
Send a message via Skype™ to artos
AussenSeiter
BANNED
Join Date: May 2010
Old 05-07-2010 , 12:54   Re: [ZP] Zombie VIP 1.6
Reply With Quote #179

Quote:
Originally Posted by artos View Post
PL:

Czemu używasz do tej pory wersji 4.2? Lepiej zmień na 4.3

ENG:

Why are you still using 4.2 version? Better change to 4.3

maybe he have a edited version from zp 4.2 ?
AussenSeiter is offline
ArTi
Junior Member
Join Date: Jan 2010
Location: Poland
Old 05-08-2010 , 15:30   Re: [ZP] Zombie VIP 1.6
Reply With Quote #180

Quote:
Originally Posted by AussenSeiter View Post
maybe he have a edited version from zp 4.2 ?
[PL]
Dokładnie

Miałem kiedyś 4.3 i nie jest Fajna. Psuła Serwer. Więc bardzo bym prosił o kod pod 4.2

[EN]
Exactly

I once had a 4.3 and it isn't Cool. Spoiled Server. And I So much asked for a code for 4.2
__________________

ArTi 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:35.


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