Raised This Month: $ Target: $400
 0% 

no


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 08-13-2014 , 15:06   Re: Compile Error [HELP]
Reply With Quote #4

First remove ^ in this line

Quote:
ColorChat(0, GREEN, "^Player %s Recieved 40 Adrenaline And 40 Hp For Knifing %s", szName, szName2)
And add } in the last of plugin

_____

PHP Code:
#include <amxmodx>
#include <fun>
#include <colorchat>
#include <jctf>

#define PLUGIN ""
#define VERSION "1.0"
#define AUTHOR ""

const TASK_ID 6969
const BonusHP 30


new g_iSync


public plugin_init(){

register_plugin("""0.2""")

register_event("DeathMsg""onDeathMsgEvent""a")
register_event("CurWeapon""onCurWeaponEvent""be""1=1")

g_iSync CreateHudSyncObj()

new 
szVersion[6]

get_cvar_string("jctf_version"szVersioncharsmax(szVersion))

if(
str_to_float(szVersion) < 1.21)
set_fail_state("jCTF is required at least v1.21 !")
}


public 
onDeathMsgEvent()
{
    new 
id read_data(1)

    new 
szWeapon[32]
    
read_data(4szWeaponcharsmax(szWeapon))

    if(
equal(szWeapon"knife") && is_user_alive(id))
    {
        new 
szName[32], szName2[32]
        
get_user_name(idszNamecharsmax(szName))
        
get_user_name(read_data(2), szName2charsmax(szName2))

        
set_hudmessage(255000.020.210.16.00.10.1, -1)
        
ShowSyncHudMsg(0g_iSync"Player %s Knifed %s HAHA"szNameszName2)

        
client_cmd(0,"spk misc/laugh")
        
ColorChat(0GREEN"Player %s Recieved 40 Adrenaline And 40 Hp For Knifing %s"szNameszName2)


        
set_user_health(idget_user_health(id) + 30
        
jctf_add_adrenaline(id40"no reason" );  
       
        
remove_task(id TASK_ID)
    } 
   } 
__________________
Eagle07 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 13:17.


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