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


Raised This Month: $ Target: $400
 0% 

Need easy VIP plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LithuanianJack
Senior Member
Join Date: Nov 2013
Location: Vilnius, Lithuania
Old 08-19-2015 , 12:17   Need easy VIP plugin
Reply With Quote #1

Hello. Can someone make CSDM VIP plugin for me? I need that after respawn i receive: 120 hp ant 1 he grenade. On ADMIN_LEVEL_H flag

Thank you all!
LithuanianJack is offline
Hartmann
Senior Member
Join Date: Nov 2014
Old 08-19-2015 , 12:39   Re: Need easy VIP plugin
Reply With Quote #2

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

public plugin_init() {
    
RegisterHam(Ham_Spawn"player""fwHamPlayerSpawnPost"1)
}

public 
fwHamPlayerSpawnPost(id) {
    if (
is_user_alive(id)) {
        if(
get_user_flags(id) & ADMIN_LEVEL_H){
            
set_user_health(id120);
            
give_itemid"weapon_hegrenade" );
        }
    }

__________________

RETAKES v1.0
github.com/alghtryer/retakes

Contact : [email protected]

BTC Donate: 1QAh1NLmeHy81LF9r8PaeGjYqHL2BBcJTx

Hartmann is offline
LithuanianJack
Senior Member
Join Date: Nov 2013
Location: Vilnius, Lithuania
Old 08-22-2015 , 15:07   Re: Need easy VIP plugin
Reply With Quote #3

Quote:
Originally Posted by Hartmann View Post
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fun>

public plugin_init() {
    
RegisterHam(Ham_Spawn"player""fwHamPlayerSpawnPost"1)
}

public 
fwHamPlayerSpawnPost(id) {
    if (
is_user_alive(id)) {
        if(
get_user_flags(id) & ADMIN_LEVEL_H){
            
set_user_health(id120);
            
give_itemid"weapon_hegrenade" );
        }
    }

Thank you! It works
LithuanianJack 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 02:31.


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