Raised This Month: $ Target: $400
 0% 

Give awp


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
decessed
Member
Join Date: Jun 2009
Location: Russia - United Kingdom
Old 09-23-2009 , 20:08   Give awp
Reply With Quote #1

ENG :

Hello!

I search for a plugin that each round only to terrorists it was given AWP , With 3 cartridges!
Help please! karma +


RUS :


Здравствуйте !

Ищу плагин чтоб каждый раунд только террористам давалось AWP , с 3 патронами !
Помогите пожалуйста ! karma +

Last edited by decessed; 09-23-2009 at 20:10.
decessed is offline
Send a message via Skype™ to decessed
3Di
Member
Join Date: Sep 2009
Location: #php_title
Old 09-23-2009 , 20:27   Re: Give awp
Reply With Quote #2

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

#define VERSION    "0.1"

public plugin_init( )
{
    
register_plugin"AWP Giver"VERSION"3Di" );
    
    
RegisterHamHam_Spawn"player""SpawnPlayer");
}

public 
SpawnPlayerid )
{
    if ( 
is_user_aliveid ) )
    {
        new 
CsTeams:iTeam cs_get_user_teamid );
        
        if ( 
iTeam == CS_TEAM_T )
        {
            
give_itemid"weapon_awp" );
            
cs_set_user_bpammoidCSW_AWP30 );
        }
    }

Attached Files
File Type: sma Get Plugin or Get Source (Awp_Giver.sma - 576 views - 486 Bytes)
3Di is offline
caveira
Junior Member
Join Date: Aug 2009
Old 09-23-2009 , 20:28   Re: Give awp
Reply With Quote #3

Here, just rename the other weapons do AWP and change ct to tr(Autor: alan_el_more): http://forums.alliedmods.net/showpos...2&postcount=14
about the 3 cartridges, I dont know how to do that.

ops, 3Di posted first. this might be useful for me too, thx.

Last edited by caveira; 09-23-2009 at 20:33.
caveira is offline
decessed
Member
Join Date: Jun 2009
Location: Russia - United Kingdom
Old 09-23-2009 , 20:45   Re: Give awp
Reply With Quote #4

3 shots are given only
decessed is offline
Send a message via Skype™ to decessed
3Di
Member
Join Date: Sep 2009
Location: #php_title
Old 09-23-2009 , 20:46   Re: Give awp
Reply With Quote #5

You only want three shots to be added?

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

#define VERSION    "0.1"

public plugin_init( )
{
    
register_plugin"AWP Giver"VERSION"3Di" );
    
    
RegisterHamHam_Spawn"player""SpawnPlayer");
}

public 
SpawnPlayerid )
{
    if ( 
is_user_aliveid ) )
    {
        new 
CsTeams:iTeam cs_get_user_teamid );
        
        if ( 
iTeam == CS_TEAM_T )
        {
            
give_itemid"weapon_awp" );
            
cs_set_user_bpammoidCSW_AWP);
        }
    }

3Di is offline
decessed
Member
Join Date: Jun 2009
Location: Russia - United Kingdom
Old 09-23-2009 , 21:06   Re: Give awp
Reply With Quote #6

It is necessary that in a holder of all there were 3 shots! And now leaves 13
decessed is offline
Send a message via Skype™ to decessed
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-23-2009 , 21:11   Re: Give awp
Reply With Quote #7

Just an FYI, you do not need to create the iTeam var since you are only using the value once:
PHP Code:
if ( cs_get_user_teamid ) == CS_TEAM_T 
__________________
Bugsy is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-23-2009 , 21:49   Re: Give awp
Reply With Quote #8

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

public plugin_init( )
{
    
register_plugin"AWP Giver""0.1""3Di" );
    
    
RegisterHamHam_Spawn"player""SpawnPlayer");
}

public 
SpawnPlayerid )
{
    if ( 
is_user_aliveid ) && cs_get_user_teamid ) == CS_TEAM_T )
    {
        
cs_set_weapon_ammogive_itemid"weapon_awp" ), );
        
cs_set_user_bpammoidCSW_AWP);
    }

__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
decessed
Member
Join Date: Jun 2009
Location: Russia - United Kingdom
Old 09-24-2009 , 05:40   Re: Give awp
Reply With Quote #9

thanks all !
decessed is offline
Send a message via Skype™ to decessed
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 17:06.


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