Raised This Month: $ Target: $400
 0% 

Hns weaponchance


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MostwantedScript
Senior Member
Join Date: Sep 2010
Location: Sweden,Gothenburg
Old 11-21-2010 , 13:57   Hns weaponchance
Reply With Quote #1

Ive edited weaponchance and made a hns weaponchance

This weaponchance got

3% Fiveseven 3 ammo
2% Deagle 3 ammo
45% scout 0 ammo (Bhop and run faster)
1% Awp 1 ammo
10% m4a1 (colt)
30% Smokenade
20% 200hp
50% He nade

Very simple to change example

PHP Code:
if(random_num(0100) <= 1
This means 1%
If we want to change from 1% to 10 Edit

PHP Code:
if(random_num(0100) <= 10
You must be 2 active players for this to work!
Dont edit knife unless u dont use hns!
Attached Thumbnails
Click image for larger version

Name:	awp_rooftops0000.jpg
Views:	160
Size:	68.6 KB
ID:	77755  
Attached Files
File Type: sma Get Plugin or Get Source (weaponchance.sma - 483 views - 3.8 KB)
__________________
Owner & Creator of
http://mostwantedhf.info
MostwantedScript is offline
Send a message via Skype™ to MostwantedScript
Weezer
BANNED
Join Date: Oct 2010
Old 11-21-2010 , 13:59   Re: Hns weaponchance
Reply With Quote #2

Post this ins Scripting Tutorial instead.
Weezer is offline
MostwantedScript
Senior Member
Join Date: Sep 2010
Location: Sweden,Gothenburg
Old 11-21-2010 , 14:01   Re: Hns weaponchance
Reply With Quote #3

Add new weapons?

Its realy easy example we add usp add

PHP Code:
new awp_ammofiveseven_ammodeagle_ammoscout_ammom4a1_ammo usp_ammo
 
 
usp_ammo 
register_cvar("WC_usp_ammo""1")
 
 
if(
random_num(0100) <= 10)
        {
            
ammo get_pcvar_num(usp_ammo)
            
give_item(player"weapon_usp")
 
            
cs_set_weapon_ammo(get_weapon_id(player"weapon_usp"), ammo)
            
green_print(player"You have the usp![10% Chance]")
        } 
__________________
Owner & Creator of
http://mostwantedhf.info
MostwantedScript is offline
Send a message via Skype™ to MostwantedScript
MostwantedScript
Senior Member
Join Date: Sep 2010
Location: Sweden,Gothenburg
Old 11-21-2010 , 14:02   Re: Hns weaponchance
Reply With Quote #4

Quote:
Originally Posted by Weezer View Post
Post this ins Scripting Tutorial instead.

Why should i? this is a plugin im not helping anyone to script?
__________________
Owner & Creator of
http://mostwantedhf.info
MostwantedScript is offline
Send a message via Skype™ to MostwantedScript
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 13:20.


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