Obscurity Mod
HOMEFEATURESFORUMMEDIADOWNLOADSABOUT
   
 

AU/NZ Exclusive

Name: AK Obscurity
IP: 45.121.211.99:28960
(show/hide server details)

   
   
 

Africa

   
   
 

South America

   
   
 

UK/Europe

Name: IceOps-Team OBS
IP: 176.31.25.80:28965
(show/hide server details)

   
   
 

US/Canada

   
   
 

Honourable Donators

Spidergat
Batman_516
mavrick
AzzDawg
EAS Clan
killerciao
Awok3n
jesus
Describe
Ripper
LaZzy
   
   
  LOGIN | SIGNUP
Obscure Creations
on Facebook
   
   
 

Latest Forum Posts

Our Obscurity server
WEBSITE

Obscurity source files?
OBSCURITY

Hello again.
OBSCURITY COVERT OPS

Obs Final Update - Suggestions
OBSCURITY

New server from Slovenia
OBSCURITY

Modding help i need
MISC

   
   
 

Obscurity Flood

   
   
 

Latest Mod Updates

2.99d Release Notes

2.99d WIP Release Notes

2.99c Fixed Release

2.99b Release Notes

   
   
 

OBSCURITY >> Help & Tutorials >> Callback_playerdamage

Topgear
(xfire: topg3ar) 

Topgear

 

Posts: 26
10:05 AM 20/11/2009

 

Im having some troubles getting a varible to increase each time someone kills someone. Ive tried this:

Callback_PlayerDamage( eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, s---Loc, psOffsetTime )
{

       
    if ( sMeansOfDeath == "MOD_IMPACT" || sMeansOfDeath == "MOD_PISTOL_BULLET" || sMeansOfDeath == "MOD_RIFLE_BULLET" && !isAlive( self ) )

    {
        eAttacker iprinlnbold("You killed someone");
        eAttacker.variable ++;
    }

Yes the variable is declared

self.variable = 0;

Once you connect.

The iprintlnbold works but not when they die, itll start working on the first tag so it pops up on average about 3 times.

Falcar
(xfire: seamusthefamous) 

Falcar

OBS Dev 

Posts: 526
10:39 AM 20/11/2009

You know there's callback_playerkilled right?

Topgear
(xfire: topg3ar) 

Topgear

 

Posts: 26
11:58 AM 20/11/2009

Mwuahaha, thanks and no i didnt know :P

 

^