Raised This Month: $ Target: $400
 0% 

call function on death, once per map


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SCHWEDEN
Member
Join Date: Dec 2007
Location: 127.0.0.1
Old 10-09-2010 , 09:26   call function on death, once per map
Reply With Quote #1

PHP Code:
public hook_DeathMsg()
{
    new 
iVictim read_data(2);
    
functionHere(iVictim);

I do this to call a function/method on iVictim everytime he dies, but I want it only to happen once per map, not every death.

How would I go about doing that? I think I need some kind of counter right?
__________________

SCHWEDEN is offline
Send a message via MSN to SCHWEDEN
 



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 10:28.


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