AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   **>>A.M Auto Fights<<** (https://forums.alliedmods.net/showthread.php?t=103892)

Xevious 09-17-2009 11:17

**>>A.M Auto Fights<<**
 
1 Attachment(s)
[Intro]
- Just in game , this plugin will give you a primary, secondary weapon and HE/FB and full armor [Include Defuser].

- This plugin will set your money to 0 prevent buy ammo.

- Team T gets ak47, glock18 with full ammo | Hegrenade , Flashbangs and Smoke .

- CT team gets m4a1, usp with full ammo | Hegrenade and Flashbangs , Smoke . [Include Defuse Kit]

- The all weapons'ammo will refilling again when the another round is started .


- Press V to refill your ammo instantly .
_____________________________________________ ____________

[Cvars] <ADDED>

amxx_a4fg [ 1 or 0 ] // 1 = on else off
am_autofill [ 1 or 0 ] // 1 = on else off

----------------------------------------------------------------------
[Cvars'Info]
amxx_a4fg = Plugin On Or Off .
am_autofill = Whether V is binded .

--------------------------------------------------------

[Changeslogs*New*]
-1.75 | Create Auto Binded For Refilling.
-----------------------------------------------------------
[
Complains]
-
To Kadir , "client_print have been disabled "

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
[OldVersion/Unsupported]
{ Unsupported }
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

GmTx 09-17-2009 11:30

Re: [{ AK VS M4 } ]
 
Fail but optimize it use
PHP Code:

strip_user_weapon(id

and disable the buyzone
Don`t use this
PHP Code:

if( cs_get_user_bpammo(idCSW_M4A1) < 90 

You`r use very much space
Don`t use
PHP Code:

set_task(15.0"print_msg"id

Register it in Ham_Spawn
And set some cvars

ConnorMcLeod 09-17-2009 11:30

Re: [{ AK VS M4 } ]
 
Quote:

Originally Posted by xPaw (Post 935809)
Booring :/


If you set bpammo to max value, it's not needed to check its value before.

GmTx 09-17-2009 11:43

Re: [{ AK VS M4 } ]
 
PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <hamsandwich>
#include <cstrike>

#define PLUGIN "AKM4"
#define VERSION "1.0"
#define AUTHOR "Xevious"


public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHamHam_Spawn"player""fwdPlayerSpawn");
}

public 
fwdPlayerSpawn(id)
{    
    if(
is_user_alive(id))
    {
        new 
name[32]    
        
get_user_name(idname31)
        
        
client_print(idprint_chat"Welcome %s your money now is , this server is using AKM4"name)
        
        switch(
cs_get_user_team(id))
        {
            case 
CS_TEAM_T:
            {
                
strip_user_weapons(id)
                
cs_set_user_money (id0)
                
give_item(id"weapon_ak47")
                
give_item(id"weapon_glock18")
                
give_item(id"weapon_hegrenade")
                
give_item(id"weapon_flashbang")
                
cs_set_user_bpammo(idCSW_AK4790)
                
cs_set_user_bpammo(idCSW_GLOCK18120)                
            }
            case 
CS_TEAM_CT:
            {
                
strip_user_weapons(id)
                
cs_set_user_money(id0)
                
give_item(id"weapon_m4a1")
                
give_item(id"weapon_usp")
                
give_item(id"weapon_hegrenade")
                
give_item(id"weapon_flashbang")
                
cs_set_user_bpammo(idCSW_M4A190)
                
cs_set_user_bpammo(idCSW_USP100
            }
        }
    }



KadiR 09-17-2009 11:45

Re: [{ AK VS M4 } ]
 
I hate client_print advertisement >_<

crazyeffect 09-17-2009 11:53

Re: [{ AK VS M4 } ]
 
Make a pcvar for the
Code:

        client_print(id, print_chat, "Welcome %s your money now is , this server is using AKM4", name)
& put its default as 0

KadiR 09-17-2009 12:11

Re: [{ AK VS M4 } ]
 
http://forums.alliedmods.net/showthread.php?p=219537

???

BOYSplayCS 09-17-2009 15:51

Re: [{ AK VS M4 } ]
 
You guys are complete assholes.

How about welcome people to this community by suggesting changes and features to make this plugin better. Don't discourage them by saying it's boring.

KadiR 09-17-2009 16:09

Re: [{ AK VS M4 } ]
 
You know, we have some fu**ers in this forum...

Xevious 09-17-2009 20:33

Re: [{ AK VS M4 } ]
 
Fixed.


All times are GMT -4. The time now is 17:18.

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