Raised This Month: $ Target: $400
 0% 

Vip plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
maneljinho
Member
Join Date: Apr 2011
Old 12-01-2011 , 18:38   Vip plugin
Reply With Quote #1

close!

Last edited by maneljinho; 03-10-2013 at 19:55.
maneljinho is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 12-01-2011 , 18:54   Re: Vip plugin
Reply With Quote #2

add a check to see if the player is connected.
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 12-01-2011 , 18:57   Re: Vip plugin
Reply With Quote #3

PHP Code:
new vip = ( ADMIN_RESERVATION ); 
->
PHP Code:
#define VIP ADMIN_RESERVATION 
AND

PHP Code:
if( ( get_user_flagsid ) & vip ) == vip 
->
PHP Code:
if( ( get_user_flagsid ) & VIP && is_user_connected(id
I don't know if this help, but try :p
__________________

Check out My Plugins:
qServerInfo ; ASKTAG

Last edited by quark; 12-01-2011 at 19:06.
quark is offline
maneljinho
Member
Join Date: Apr 2011
Old 12-01-2011 , 19:03   Re: Vip plugin
Reply With Quote #4

close!

Last edited by maneljinho; 03-10-2013 at 19:55.
maneljinho is offline
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 12-01-2011 , 19:06   Re: Vip plugin
Reply With Quote #5

You try both?
__________________

Check out My Plugins:
qServerInfo ; ASKTAG
quark is offline
maneljinho
Member
Join Date: Apr 2011
Old 12-01-2011 , 19:16   Re: Vip plugin
Reply With Quote #6

close!

Last edited by maneljinho; 03-10-2013 at 19:55.
maneljinho is offline
quark
Veteran Member
Join Date: Oct 2011
Location: Your mind.
Old 12-01-2011 , 19:23   Re: Vip plugin
Reply With Quote #7

Phone... Tomorrow i help u steam
__________________

Check out My Plugins:
qServerInfo ; ASKTAG

Last edited by quark; 12-01-2011 at 19:30.
quark is offline
maneljinho
Member
Join Date: Apr 2011
Old 12-01-2011 , 19:24   Re: Vip plugin
Reply With Quote #8

close!

Last edited by maneljinho; 03-10-2013 at 19:55.
maneljinho is offline
demon81
Member
Join Date: Sep 2010
Location: Portugal
Old 12-02-2011 , 13:33   Re: Vip plugin
Reply With Quote #9

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fakemeta>
#include <fun>

#define PLUGIN  "PFGaming.com"
#define VERSION "1.0"
#define AUTHOR  ""

#define ACCESS(%1) (get_user_flags(%1) & ADMIN_RESERVATION)

public plugin_init()
{
    
register_plugin PLUGINVERSIONAUTHOR )
    
register_logevent"Event_RoundStart"2"1=Round_Start" )
    
RegisterHamHam_Spawn"player""fwdPlayerSpawn")
}

public 
fwdPlayerSpawn(id)
{
 if(!
is_user_alive(id) || !ACCESS(id))
  return 
PLUGIN_HANDLED

    
{
        
give_item(id,"weapon_deagle");
        
give_item(id,"weapon_hegrenade");
        
give_item(id,"weapon_flashbang");
        
give_item(id,"weapon_flashbang");
        
give_item(id,"weapon_smokegrenade");
        
give_item(id,"item_assaultsuit");
        
give_item(id,"item_thighpack");
        
give_item(id,"ammo_50ae");
        
give_item(id,"ammo_50ae");
        
give_item(id,"ammo_50ae");
        
give_item(id,"ammo_50ae");
        
give_item(id,"ammo_50ae");
    }
}  

public 
Event_RoundStart(id) {
    
client_print(idprint_chat"Compra VIP e disfruta das nossas vantagens VIP's")

Try, not tested.

Last edited by demon81; 12-02-2011 at 13:34.
demon81 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:24.


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