Raised This Month: $ Target: $400
 0% 

Weapon speed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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