Raised This Month: $ Target: $400
 0% 

Weapon speed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
reinert
Veteran Member
Join Date: Feb 2007
Old 05-31-2010 , 07:28   Weapon speed
Reply With Quote #1

Hey, I'm making a plugin that every round gives various classes to players randomly. so I've got a Sniper class, and I want to make that if Player gets Sniper class he would be slower.
Here is my plugin right now, I havn't tested it yet, but I'm sure -speed would work only until you change your weapon.
PHP Code:
    if(PlayerMode[id] == Sniper)
    {
    new 
Float:speed get_user_maxspeed(id) - 30.0;
    
set_user_maxspeed(id speed);
    
give_item(id"weapon_awp");
    
give_item(id,"ammo_338magnum");
    
give_item(id,"ammo_338magnum");
    
give_item(id,"ammo_338magnum");
    } 
reinert is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-31-2010 , 08:01   Re: Weapon speed
Reply With Quote #2

Hook Event_CurWeapon and check it there to
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
reinert
Veteran Member
Join Date: Feb 2007
Old 05-31-2010 , 10:28   Re: Weapon speed
Reply With Quote #3

Thanks ! hope it works!
reinert is offline
Reply


Thread Tools
Display Modes

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 05:21.


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