Raised This Month: $51 Target: $400
 12% 

Plugin Change? And search Plugin?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sunshine live
Veteran Member
Join Date: May 2009
Location: Berlin
Old 04-20-2012 , 07:47   Plugin Change? And search Plugin?
Reply With Quote #1

Hay, I ask the following and that makes it so that it withdraws all the HP team.
But I'd like it only kills the +10 jenigen the 20hp has withdrawn. Is that possible?

Sorry my english is not good

German:
Hay, ich hab folgende frage und zwar macht es ja das es das ganze team die HP abzieht.
Doch ich würd gern das es nur den jenigen der +10 kills hat die 20hp abzieht. Geht das?

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>

#define PLUGIN "Winner Loose HP"
#define VERSION "1.0"
#define AUTHOR "KiA & NiTroX"

new TerrorWinCounterWin


public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_event"SendAudio""CT_win""a""2&%!MRAD_ctwin" 
    
register_event"SendAudio""T_win""a""2&%!MRAD_terwin" 
    
    
RegisterHam(Ham_Spawn"player""hfw_plrSpawnPost"1)
}

public 
CT_win() CounterWin++

public 
T_win() TerrorWin++

public 
hfw_plrSpawnPost(id)
{
    if(
cs_get_user_team(id) == CS_TEAM_T && (TerrorWin CounterWin >= 5))
    {
        
set_user_health(id, (get_user_health(id) - 20))
    }
    
    if(
cs_get_user_team(id) == CS_TEAM_CT && (CounterWin TerrorWin >= 5))
    {
        
set_user_health(id, (get_user_health(id) - 20))
    }

And then I'd have one other question and that you have that plugin from NEN +15 kills one weapon only allowed to have fun playing

German:
Und dann hätt ich noch einen andere Frage und zwar habt ihr nen plugin welches ab +15 Kills einen nur noch erlaubt mit Fun waffen zuspielen
__________________
Sunshine live is offline
Send a message via ICQ to Sunshine live Send a message via MSN to Sunshine live Send a message via Skype™ to Sunshine live
Reply



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:43.


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