Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Armor Free


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
tii
Senior Member
Join Date: Apr 2009
Old 06-22-2009 , 16:42   [ZP] Armor Free
Reply With Quote #1

• ========================================== =================
:::::::::::::::::::::::::::::::::::[ZP] Armor Free:::::::::::::::::::::::::::::::::::
============================================ ===============
About: Simple plugin, give for all players (humans) an armor of 200.
• ========================================== =================
0.1 first release
0.2 added cvar zp_armor = 200 (default) and fixed zombie with armor
========================▼DOWNLOAD==========================
Attached Files
File Type: sma Get Plugin or Get Source (zp_armor_free.sma - 8507 views - 2.1 KB)

Last edited by tii; 06-22-2009 at 22:51.
tii is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 06-22-2009 , 17:00   Re: [ZP] Armor Free
Reply With Quote #2

http://forums.alliedmods.net/showpos...postcount=1106 ???
You just need to change source in there and it will be free too.
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
tii
Senior Member
Join Date: Apr 2009
Old 06-22-2009 , 17:10   Re: [ZP] Armor Free
Reply With Quote #3

Quote:
Originally Posted by Fry! View Post
http://forums.alliedmods.net/showpos...postcount=1106 ???
You just need to change source in there and it will be free too.
how?
I tried

then did this plugin.

many people in my server bought several armor and end just stronger than the zombies.

then with this plugin.
at the beginning of the round and given a vest to face. (200)


Infection with Anti-Armor 1.0, people can buy how many you want ...
limitation of armor for me =@ is not good solution.

Last edited by tii; 06-22-2009 at 17:15.
tii is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 06-22-2009 , 17:19   Re: [ZP] Armor Free
Reply With Quote #4

But you surely can make limit armor per round.
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
tii
Senior Member
Join Date: Apr 2009
Old 06-22-2009 , 17:23   Re: [ZP] Armor Free
Reply With Quote #5

Quote:
Originally Posted by Fry! View Post
But you surely can make limit armor per round.
yes, const g_armor_limit = 999
more was not a good exit.
many buy 10 armors followed ..

this plugin.

all receive the same armor.
same amount.

nobody is in inequality.
tii is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 06-22-2009 , 17:29   Re: [ZP] Armor Free
Reply With Quote #6

yea, but you can make lower that number like max_armor_per_round = 400 and thats all. (I just give you ideas)
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
Old 06-22-2009, 21:55
tii
This message has been deleted by tii.
tii
Senior Member
Join Date: Apr 2009
Old 06-23-2009 , 21:54   Re: [ZP] Armor Free
Reply With Quote #7

Quote:
Originally Posted by Fry! View Post
yea, but you can make lower that number like max_armor_per_round = 400 and thats all. (I just give you ideas)
yes good idea, it would be more interesting and not limit per round.

but by player
max_armor_per_player = 1

if buy 1, can not buy more.
tii is offline
sunx
Veteran Member
Join Date: Mar 2009
Location: Germany
Old 07-18-2009 , 03:24   Re: [ZP] Armor Free
Reply With Quote #8

man i was searching this plugin now for ~ 1 1/2h ... ^^
i knew it was existing but didnt know how thread was called ... anyway .. nice plugin
__________________


Last edited by sunx; 07-21-2009 at 12:49.
sunx is offline
John301
BANNED
Join Date: Jul 2010
Old 12-10-2010 , 13:26   Re: [ZP] Armor Free
Reply With Quote #9

how can i do it only for admins?
John301 is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 12-10-2010 , 14:04   Re: [ZP] Armor Free
Reply With Quote #10

Here you have

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

#define ACCESS ADMIN_LEVEL_H

new cvar_armor_valueg_SayText
 
new sound_armor[] = { "items/tr_kevlar.wav" }
 
public 
plugin_init() 
{
    
register_plugin("[ZP] Free Armor for Admins""1.0""Vechta")
    
    
RegisterHam(Ham_Spawn"player""fw_Give_Armor"1)
    
cvar_armor_value register_cvar("zp_armor""200")
    
    
g_SayText get_user_msgid("SayText")
}

public 
fw_Give_Armor(id)
{
    if (
is_user_alive(id) && !zp_get_user_zombie(id))
    {
        if (
get_user_flags(id) & ACCESS)
        {
            
set_user_armor(idget_pcvar_num(cvar_armor_value))
            
ColorPrint(id"^x04[ZP]^x01 You got^x04 %i^x01Armor!"get_pcvar_num(cvar_armor_value))
            
client_cmd(id"spk %s"sound_armor)
        }
    }
}
  

stock ColorPrint(const id, const input[], any:...)
{
    if( !
is_user_connectedid ) )
        return

    static 
msg[191]
    
vformat(msg190input3)
    
    
replace_all(msg190"!g""^4")
    
replace_all(msg190"!y""^1")
    
replace_all(msg190"!t""^3")
    
    
message_begin(MSG_ONE_UNRELIABLEg_SayText_id)
    
write_byte(id)
    
write_string(msg)
    
message_end()


Last edited by Vechta; 12-10-2010 at 14:07.
Vechta is offline
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 10:30.


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