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

Stealth Assasin mod


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
HoLLyWooD
Senior Member
Join Date: Nov 2010
Location: Ukraine Krivoy Rog
Old 01-08-2011 , 06:26   Stealth Assasin mod
Reply With Quote #1

.: Stealth Assasin Mod :.

Description
I would like to introduce you to a plugin that adds a nice gameplay on your server.

If the player chooses the knife, he gets these bonuses:
  1. Transparency
  2. Running speed
  3. Regeneration of life
  4. Reduced gravity
  5. Jumping in the air

Quote:
Originally Posted by CVARS
kn_on 1 // ( default : 1 ) On/Off this plugin
kn_rend 50 // ( def: 50) rendering player with knife
kn_grav 0.7 // ( def:0.7) gravity player with knife
kn_speed 350.0 // ( def: 350.0 ) speed player with knife
kn_addheal 10 // ( def: 10) how many health will be regen
kn_healtime 3.0 // ( def: 3.0 ) time for healing
kn_maxhp 100 // ( def: 100 ) max user health
kn_jumps 2 // ( def: 2) how many multi jumps
Updated 8.03.11
Attached Files
File Type: sma Get Plugin or Get Source (stealthassassin.sma - 984 views - 3.3 KB)

Last edited by HoLLyWooD; 03-08-2011 at 02:34.
HoLLyWooD is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 01-08-2011 , 07:11   Re: Stealth Assasin mod
Reply With Quote #2

Looks good but,
In my eyes, this looks better..

PHP Code:
public CurWeapon(id){
    if(
get_pcvar_num(kn_on) == && is_user_alive(id) && is_user_connected(id)){
        new 
clipammo
        
new weapon get_user_weapon(id,clip,ammo)
        
        if (
weapon == CSW_KNIFE ){
            
set_user_rendering(id,kRenderFxNone0,0,0kRenderTransTexture,get_pcvar_num(kn_rend));
            
set_user_gravity(id,get_pcvar_float(kn_grav));
            
set_user_maxspeed(id,get_pcvar_float(kn_speed));
            
            if(!
task_exists(id))
                
set_task(get_pcvar_float(kn_healtime),"task_healing",id,_,_,"b"
                
            
with_knife[id] = true
        
}else{
            
set_user_rendering(id,kRenderFxNone0,0,0kRenderTransTexture255 )
            
set_user_gravity(id,1.0);
            
set_user_maxspeed(id,250.0);
            
            if(
task_exists(id))
                
remove_task(id)
                
            
with_knife[id] = false
        
}
    }

---->

PHP Code:
public CurWeapon(id){
    if(
get_pcvar_num(kn_on) == && is_user_alive(id) && is_user_connected(id)){
        new 
clipammonumFloat:num2;
        new 
weapon get_user_weapon(id,clip,ammo)
        
num = (weapon == CSW_KNIFE) ? get_pcvar_num(kn_rend) : 255set_user_rendering(id,kRenderFxNone0,0,0kRenderTransTexturenum);
        
num2 = (weapon == CSW_KNIFE) ? get_pcvar_float(kn_grav) : 1.0set_user_gravity(idnum2);
        
num2 = (weapon == CSW_KNIFE) ? get_pcvar_float(kn_speed) : 250.0set_user_maxspeed(idnum2);
            
        if(!
task_exists(id)) {
            if(
weapon == CSW_KNIFEset_task(get_pcvar_float(kn_healtime),"task_healing",id,_,_,"b");
            else 
remove_task(id);
        }
    }

__________________
Retired.
Xalus is offline
HoLLyWooD
Senior Member
Join Date: Nov 2010
Location: Ukraine Krivoy Rog
Old 01-08-2011 , 07:50   Re: Stealth Assasin mod
Reply With Quote #3

thanks for the advice
will use

did not know that and pawn so you can
HoLLyWooD is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 01-08-2011 , 07:52   Re: Stealth Assasin mod
Reply With Quote #4

Looks like Furien
Vechta is offline
HoLLyWooD
Senior Member
Join Date: Nov 2010
Location: Ukraine Krivoy Rog
Old 01-08-2011 , 08:24   Re: Stealth Assasin mod
Reply With Quote #5

About Furien first heard of you.

In this mini-mod that I did play a few years ago on some server.
HoLLyWooD is offline
.MMYTH.
BANNED
Join Date: Sep 2010
Location: Brasil - RS
Old 01-08-2011 , 09:42   Re: Stealth Assasin mod
Reply With Quote #6

PHP Code:
new weapon get_user_weapon(id,clip,ammo
->>
PHP Code:
new weapon get_user_weapon(id
OR
PHP Code:
new weapon read_data(1
.MMYTH. is offline
Send a message via MSN to .MMYTH.
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 01-08-2011 , 12:20   Re: Stealth Assasin mod
Reply With Quote #7

The right one is

PHP Code:
new weapon read_data(1
</span></span>
__________________
Retired.
Xalus is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 01-08-2011 , 14:10   Re: Stealth Assasin mod
Reply With Quote #8

Quote:
Originally Posted by Xalus View Post
The right one is

PHP Code:
new weapon read_data(1
</span></span>
No

PHP Code:
new weapon read_data(2); 
http://wiki.alliedmods.net/Half-Life...ents#CurWeapon
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
brendonz
Junior Member
Join Date: Jan 2011
Old 01-09-2011 , 00:59   Re: Stealth Assasin mod
Reply With Quote #9

hmm , gj ^^
brendonz is offline
.MMYTH.
BANNED
Join Date: Sep 2010
Location: Brasil - RS
Old 01-09-2011 , 08:37   Re: Stealth Assasin mod
Reply With Quote #10

Quote:
Originally Posted by brendonz View Post
hmm , gj ^^
Is this a flood?
.MMYTH. is offline
Send a message via MSN to .MMYTH.
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 22:08.


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