Raised This Month: $ Target: $400
 0% 

How to add comma ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Nano x
Member
Join Date: Feb 2014
Location: Lebanon, beirut
Old 11-21-2015 , 17:29   Re: How to add comma ?
Reply With Quote #7

but it is not working no comma, here is the original plugin
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <colorchat>
#include <zombie_plague_advance>

#define PLUGIN_NAME "[ZP] Sniper Health"
#define PLUGIN_VERS "1.0"
#define PLUGIN_AUTH "hi!"

#define TASK_HEALTH 1234554321


public plugin_init() 
{
    
register_plugin(PLUGIN_NAMEPLUGIN_VERSPLUGIN_AUTH)

    
// Fwd's
    
RegisterHam(Ham_Spawn"player""Fwd_PlayerSpawn_Post"1)
    
RegisterHam(Ham_Killed"player""Fwd_PlayerKilled_Pre"0)
}

public 
Fwd_PlayerSpawn_Post(id)
{
    if (
task_exists(id+TASK_HEALTH))
        
remove_task(id+TASK_HEALTH)
}

public 
Fwd_PlayerKilled_Pre(victimattackershouldgib)
{
    if (
task_exists(victim+TASK_HEALTH))
        
remove_task(victim+TASK_HEALTH)
}

public 
zp_round_started(modeid)
{
    if (
mode != MODE_SNIPER)
        return
        
    if (!
zp_get_user_sniper(id))
        return
        
    
set_task(34.0"Task_ShowHealth"id+TASK_HEALTH__"b")

}

public 
Task_ShowHealth(id)
{
    
id -= TASK_HEALTH
    
    
if (!zp_get_user_sniper(id))
        
remove_task(id+TASK_HEALTH)
    
    
ColorChat(0GREY"^x04[ZP]^x01 A ^x03Rapture^x01 Reminder ^x03@^x01 ^x04Sniper^x01 still has ^3%d ^x04health points!^x01"get_user_health(id))


Nano x is offline
 



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 15:03.


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