Raised This Month: $ Target: $400
 0% 

Hook Dat DeathMsg!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
thebobjones34
Member
Join Date: Oct 2006
Old 08-25-2007 , 08:59   Hook Dat DeathMsg!
Reply With Quote #1

Okay yeah, first time with events and i dont know what im doing wrong. Like when i kill who evers id is passed into PlayerCT it doesnt reg it.
Code:
public hook_DeathMsg() {     new Victim = read_data(2) //get the second message parameter     if(g_Dueling == 1) {         if(is_user_dueling(Victim)) {             duelEND(Victim)         }     }     return PLUGIN_CONTINUE }                 /* returns wether or not if the user is dueling */ public is_user_dueling(id) {     if(g_Dueling == 1) {         if(g_PlayerCT == id || g_PlayerT == id)             return 1     }     return 0 }
__________________
thebobjones34 is offline
Send a message via AIM to thebobjones34
 



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 16:12.


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