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

vip model plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
spike1554746
Junior Member
Join Date: Mar 2012
Old 04-20-2012 , 18:15   vip model plugin
Reply With Quote #1

plz help i want to make a vip plugin only but it doesnt work plz help
and tell me if there is someone did it

PHP Code:
/*================================================================================
    
//AUTHOR : Gamerz-Vip
================================================================================*/

#include <amxmodx>
#include <fakemeta>
#include <zp50_class_human>
#include <zmvip>

// Human Attributes
new const hclass_name[] = { "vip" // name
new const hclass_info[] = { "*VIP*" // description
new const hclass_model[] = { "vip.mdl" // model
const hclass_health 150 // health
const hclass_speed 1.50 // speed
const Float:hclass_gravity 1.50 // gravity

// Class IDs
new g_zclassid1

// Human Classes MUST be registered on plugin_precache
public plugin_precache()
{
    
register_plugin("[ZP] Additional Human Classes""0.1""Example")
    
    
// Register the new class and store ID for reference
    
g_zclassid1 zp_class_human_register(hclass_namehclass_infohclass_modelhclass_healthhclass_speedhclass_gravity)    
}

public 
zp_user_infected_pre(idinfector)
    if(
zp_get_user_human_class(id) == g_zclassid1 && !(zv_get_user_flags(id) && ZV_MAIN)) zp_set_user_human_class(id0)

// User Infected forward
public zp_user_infected_post(idinfector)
{
    
// Check if the player is using our custom human class
    
if (zp_get_user_human_class(id) == g_zclassid1)
        
client_print(idprint_chat"[ZP] YOU ARE USING THE VIP ONLY CLASS!")

spike1554746 is offline
Old 04-20-2012, 18:48
skazime
This message has been deleted by skazime.
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 04-20-2012 , 20:24   Re: vip model plugin
Reply With Quote #2

Like this?
PHP Code:
#include <amxmodx>
#include <zp50_class_human>
#include <zmvip>

new const hclass_name[] = { "vip" // name
new const hclass_info[] = { "*VIP*" // description
new const hclass_model[] = { "vip.mdl" // model
const hclass_health 150 // health
const Float:hclass_speed 1.50 // speed
const Float:hclass_gravity 1.50 // gravity

new g_zclassid1

public plugin_precache ( ) {
    
register_plugin "[ZP] Additional Human Classes" "0.1" "Example" )
    
    
g_zclassid1 zp_class_human_register(hclass_namehclass_infohclass_healthhclass_speedhclass_gravity)
    new 
index
    
for (index 0index sizeof hclass_modelindex++)
        
zp_class_human_register_model(g_zclassid1hclass_model[index]); }

public 
zp_user_humanized_pre id ) { 
    if(
zv_get_user_flags id ) == ) { 
        if(
zp_class_human_get_next id ) == g_zclassid1 ) { 
            
zp_class_human_set_next id 0)  
            
client_printidprint_center"blabla" 
            
client_printidprint_chat"blabla" ); } } } 
__________________
H.RED.ZONE is offline
DeMNiX
Veteran Member
Join Date: Nov 2011
Location: Russia
Old 04-21-2012 , 01:34   Re: vip model plugin
Reply With Quote #3

hmmm...Nice example. Thanks.

P.S. I think before that zm_vip need to rewriting on version Zp Five
__________________
My channel with test codes
https://www.youtube.com/user/demnix03

Zombie Riot [Scenario & bots-zombie 11.11.2023]
https://youtu.be/8ZZan-aq2sc
DeMNiX is offline
spike1554746
Junior Member
Join Date: Mar 2012
Old 04-21-2012 , 01:51   Re: vip model plugin
Reply With Quote #4

thx all for helping now i well post it as my first plugin but i well put H.RED.ZONE his name in it

Last edited by spike1554746; 04-21-2012 at 02:01.
spike1554746 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 16:06.


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