Raised This Month: $ Target: $400
 0% 

Doing a deathshot only once.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
vamppa
Senior Member
Join Date: Apr 2010
Location: The Netherlands
Old 07-20-2013 , 13:21   Doing a deathshot only once.
Reply With Quote #1

PHP Code:
#define SCREENSHOT_PER_DEATHS random_num( 1, 35)

    
register_event("DeathMsg" "xDeathMsg" "a");

public 
xDeathMsg() 

    new 
id read_data(2
    if ( ! (++
gDeaths[id] % SCREENSHOT_PER_DEATHS) ) 
    { 
          
client_cmd(id"snapshot"
    } 

How would I do the random deathshot one time?
vamppa 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 06:32.


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