Raised This Month: $32 Target: $400
 8% 

No Fall Damange VIP & Chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 11-15-2021 , 12:36   No Fall Damange VIP & Chat
Reply With Quote #1

Hi guys i have this plugin and want when the Player VIP jump from a long way to earth
see a message YELLOW Color
Everywhen jump from a long way to earth
Falling damage absorbed due vip access!

VIP ACCESS_ ADMIN_LEVEL_H
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <engine>

new const PLUGIN[]     = "[ No Fall Damage ]";
new const 
VERSION[]     = "[ 2.0 ]";
new const 
DATE[]     = "[ 08 Juin 2021 ]";

new 
cvar_falldamage;

public 
plugin_init()
{
    
register_plugin("PLUGIN""VERSION""");
    
    
RegisterHam(Ham_TakeDamage"player""Fw_Damage");
    
    
register_concmd("ver_fde""Code_Version");
    
cvar_falldamage register_cvar("fde_falldamage""50"ADMIN_BAN);
}

public 
Code_Version(id)
{
    
console_print(id"==============================");
    
console_print(id"%s v%s"PLUGINVERSION);
    
console_print(id"%s"DATE);
    
console_print(id"==============================");
}

public 
Fw_Damage(victiminflictorattackerFloat:damagedmgbits)
{
    if(
dmgbits == DMG_FALL)
    {
        new 
Float:multiplier Float:(get_pcvar_num(cvar_falldamage) / 0);
        
SetHamParamFloat(4damage multiplier);
    }
}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1036{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/ 
SHIFT0 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-16-2021 , 10:16   Re: No Fall Damange VIP & Chat
Reply With Quote #2

Can you search for an old topic?


AND LMAO why are you dividing by a zero ????
PHP Code:
 new Float:multiplier Float:(get_pcvar_num(cvar_falldamage) / 0); 
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 11-16-2021 at 10:18.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 11-16-2021 , 10:44   Re: No Fall Damange VIP & Chat
Reply With Quote #3

Idk xd
I just want this for vip only
admin_level_h
and when jump from a long way to earth see a message chat
Falling damage absorbed due vip access!
SHIFT0 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-16-2021 , 12:28   Re: No Fall Damange VIP & Chat
Reply With Quote #4

PHP Code:
#define VIP_FLAG ADMIN_LEVEL_H

public Fw_Damage(victiminflictorattackerFloat:damagedmgbits)
{
    if(
dmgbits DMG_FALL && get_user_flags(id) & VIP_FLAG)
    {
        
        
SetHamParamFloat(40.0 );
    }

__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 11-16-2021 , 12:38   Re: No Fall Damange VIP & Chat
Reply With Quote #5

Quote:
#include <amxmodx>
#include <hamsandwich>
#include <engine>

#define VIP_FLAG ADMIN_LEVEL_H

new const PLUGIN[] = "[ No Fall Damage ]";
new const VERSION[] = "[ 2.0 ]";
new const DATE[] = "[ 08 Juin 2021 ]";

new cvar_falldamage;

public plugin_init()
{
register_plugin("PLUGIN", "VERSION", "");

RegisterHam(Ham_TakeDamage, "player", "Fw_Damage");

register_concmd("ver_fde", "Code_Version");
cvar_falldamage = register_cvar("fde_falldamage", "50", ADMIN_BAN);
}

public Code_Version(id)
{
console_print(id, "==============================");
console_print(id, "%s v%s", PLUGIN, VERSION);
console_print(id, "%s", DATE);
console_print(id, "==============================");
}

public Fw_Damage(victim, inflictor, attacker, Float:damage, dmgbits)
{
if(dmgbits & DMG_FALL && get_user_flags(id) & ADMIN_LEVEL_H)
{

SetHamParamFloat(4, 0.0 );
}
}
Errors ! can fix this errors
and want when jump from long way and touch earth see a message means
Falling damage absorbed due vip access!

Last edited by SHIFT0; 11-16-2021 at 12:45.
SHIFT0 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-16-2021 , 12:46   Re: No Fall Damange VIP & Chat
Reply With Quote #6

PHP Code:
public Fw_Damage(victiminflictorattackerFloat:damagedmgbits)
{
    if(
dmgbits DMG_FALL && get_user_flags(id) & VIP_FLAG)
    {
        
client_print(victimprint_chat"Falling damage absorbed due vip access!");
        
SetHamParamFloat(40.0 );
    }

__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 11-16-2021 , 13:13   Re: No Fall Damange VIP & Chat
Reply With Quote #7

Quote:
Originally Posted by Natsheh View Post
PHP Code:
public Fw_Damage(victiminflictorattackerFloat:damagedmgbits)
{
    if(
dmgbits DMG_FALL && get_user_flags(id) & VIP_FLAG)
    {
        
client_print(victimprint_chat"Falling damage absorbed due vip access!");
        
SetHamParamFloat(40.0 );
    }

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

#define VIP_FLAG ADMIN_LEVEL_H

new const PLUGIN[] = "[ No Fall Damage ]";
new const 
VERSION[] = "[ 2.0 ]";
new const 
DATE[] = "[ 08 Juin 2021 ]";

new 
cvar_falldamage;

public 
plugin_init()
{
register_plugin("PLUGIN""VERSION""");

RegisterHam(Ham_TakeDamage"player""Fw_Damage");

register_concmd("ver_fde""Code_Version");
cvar_falldamage register_cvar("fde_falldamage""50"ADMIN_BAN);
}

public 
Code_Version(id)
{
console_print(id"==============================");
console_print(id"%s v%s"PLUGINVERSION);
console_print(id"%s"DATE);
console_print(id"==============================");
}

public 
Fw_Damage(victiminflictorattackerFloat:damagedmgbits)
{
    if(
dmgbits DMG_FALL && get_user_flags(id) & VIP_FLAG)
    {
        
client_print(victimprint_chat"Falling damage absorbed due vip access!");
        
SetHamParamFloat(40.0 );
    }

Error: Undefined symbol "id" on line 33
Warning: Symbol is assigned a value that is never used: "cvar_falldamage" on line 40

1 Error.
Could not locate output file D:\AMX Mod X\amxxstudio\Untitled.amx (compile failed).
SHIFT0 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 11-16-2021 , 13:15   Re: No Fall Damange VIP & Chat
Reply With Quote #8

get_user_flags(id)

get_user_flags(victim)
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 11-16-2021 , 13:26   Re: No Fall Damange VIP & Chat
Reply With Quote #9

1 Warning.
Done. ty
SHIFT0 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 06:24.


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