Raised This Month: $ Target: $400
 0% 

Friendlyfire Using TakeDamage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MokeN
Senior Member
Join Date: Jan 2012
Location: Vaasa, Finland
Old 07-15-2012 , 06:35   Friendlyfire Using TakeDamage
Reply With Quote #1

Hi

Since i'm not so good with hamsandwich, i ask u guys for help.

This is the thing:
I'm making an game menu where i need friendlyfire in Terrorist team under the specific game only and i want to use takedamage, since mp_friendlyfire didn't work.

Request in the TakeDamage:
Terrorist vs Terrorist under a specific "game".

Etc.
PHP Code:
public fwdTakeDamage(iVictimiInflictoriAttackerFloat:flDamageiDmgBits)
{
      if( (
is_user_connected(iAttacker)) && (GAME_WAR <= g_iCurrentGame <= GAME_INTERVENTION <= g_iCurrentGame == GAME_SCOUT) )
      {      
      
AttackerTeam cs_get_user_team(iAttacker);
      
VictimsTeam cs_get_user_team(iVictim);
      
      if(
AttackerTeam == CS_TEAM_T && AttackerTeam == VictimsTeam)
      {
            return 
HAM_SUPERCEDE;
       }
      }
      return 
HAM_IGNORED


Thanks
__________________
Private Works:
- Achievements, HNS & JB Menus, HNS & JB Shops

mY BlockMaker - mY Steam - mY Game Menu

Last edited by MokeN; 07-15-2012 at 06:39. Reason: Team Checking wrong in PHP Code
MokeN is offline
Send a message via Skype™ to MokeN
 



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 15:22.


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