Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Extra item : Human Pack


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Anggara_nothing
Veteran Member
Join Date: Jan 2009
Location: Indonesia
Old 04-09-2009 , 08:38   Re: [ZP] Extra item : Human Pack
Reply With Quote #1

is this working???
Quote:
fm_set_user_gravity(player, get_pcvar_float(Gravity))
--->
Quote:
set_pev(player, pev_gravity, get_pcvar_float(Gravity))
Anggara_nothing is offline
zombieplague
Veteran Member
Join Date: Apr 2009
Old 04-09-2009 , 08:41   Re: [ZP] Extra item : Human Pack
Reply With Quote #2

Quote:
Originally Posted by Anggara_nothing View Post
is this working???
--->
I don't know, I haven't test.
zombieplague is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 04-09-2009 , 08:46   Re: [ZP] Extra item : Human Pack
Reply With Quote #3

@ Anggara_nothing:
yes

@ zombieplague:
sorry, i'm wrong and confused
is well
__________________
alan_el_more is offline
superang
Senior Member
Join Date: Apr 2009
Location: Portugal
Old 04-09-2009 , 10:15   Re: [ZP] Extra item : Human Pack
Reply With Quote #4

Dude, if the human die he loses his human pack, if get infected too.

Per round sucks.
__________________
superang is offline
Send a message via MSN to superang
AlejandroSk
BANNED
Join Date: Nov 2008
Location: Aqui, en mi casa. Karma:
Old 04-09-2009 , 12:02   Re: [ZP] Extra item : Human Pack
Reply With Quote #5

LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
#include <fun>
#include <cstrike>
#include <fakemeta_util>
AlejandroSk is offline
Send a message via MSN to AlejandroSk
Mgee
Junior Member
Join Date: Apr 2009
Old 04-09-2009 , 14:29   Re: [ZP] Extra item : Human Pack
Reply With Quote #6

Nice gj
__________________




Mgee is offline
SkittleZ
New Member
Join Date: Mar 2009
Old 04-09-2009 , 17:38   Re: [ZP] Extra item : Human Pack
Reply With Quote #7

Thanks I needed this
__________________
SkittleZ is offline
AlejandroSk
BANNED
Join Date: Nov 2008
Location: Aqui, en mi casa. Karma:
Old 04-09-2009 , 17:40   Re: [ZP] Extra item : Human Pack
Reply With Quote #8

use this plugins = alot of cpu usage
AlejandroSk is offline
Send a message via MSN to AlejandroSk
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 04-09-2009 , 17:44   Re: [ZP] Extra item : Human Pack
Reply With Quote #9

has more modules that zombie plague :O
__________________
alan_el_more is offline
AlejandroSk
BANNED
Join Date: Nov 2008
Location: Aqui, en mi casa. Karma:
Old 04-09-2009 , 17:45   Re: [ZP] Extra item : Human Pack
Reply With Quote #10

Optimization ;P

Code:
#include <amxmodx> #include <zombieplague> #include <fakemeta_util> new g_itemhp, Armor, Health, Gravity public plugin_init() {     register_plugin("[ZP] Human Pack", "1.1", "zombieplague")     g_itemhp = zp_register_extra_item("Human Pack", 35, ZP_TEAM_HUMAN)         Health = register_cvar("zp_hp_health", "500");    // Amount of HP         Armor = register_cvar("zp_hp_armor", "500");    // Amount of Armor         Gravity = register_cvar("zp_hp_gravity", "0.7");    // Amount of Gravity   } public zp_extra_item_selected(player, itemid) {     if (itemid == g_itemhp)     {          // Health          set_pev(player, pev_health, (pev(player, pev_health) + get_pcvar_float(Health)))          // Armor          set_pev(player, pev_armorvalue, (pev(player, pev_armorvalue) + get_pcvar_float(Armor)))          // Gravity      fm_set_user_gravity(player, get_pcvar_float(Gravity))          // Weapon          fm_give_item(player, "weapon_mp5navy")          fm_give_item(player, "weapon_ak47")          fm_give_item(player, "weapon_m4a1")      fm_give_item(player, "weapon_awp")      fm_give_item(player, "weapon_deagle")          // Item          fm_give_item(player, "weapon_hegrenade")      fm_give_item(player, "weapon_flashbang")          fm_give_item(player, "weapon_smokegrenade")          // BP ammo          fm_set_user_bpammo(player, CSW_DEAGLE, 200)          fm_set_user_bpammo(player, CSW_AK47, 200)          fm_set_user_bpammo(player, CSW_M4A1, 200)          fm_set_user_bpammo(player, CSW_AWP, 200)          fm_set_user_bpammo(player, CSW_MP5NAVY, 200)          fm_set_rendering(player, kRenderFxGlowShell, 10, 5, 0, kRenderNormal, 16);          client_print(player, print_chat, "[ZP] You have bought a Human Pack")     } } stock fm_set_user_bpammo(id, weaponid, amnt) {     static offset;     switch(weaponid)     {         case CSW_AWP: offset = 377;         case CSW_SCOUT,CSW_AK47,CSW_G3SG1: offset = 378;         case CSW_M249: offset = 379;                 case CSW_FAMAS,CSW_M4A1,CSW_AUG,CSW_SG550,CSW_GALI,CSW_SG552: offset = 380;         case CSW_M3,CSW_XM1014: offset = 381;         case CSW_USP,CSW_UMP45,CSW_MAC10: offset = 382;         case CSW_FIVESEVEN,CSW_P90: offset = 383;         case CSW_DEAGLE: offset = 384;         case CSW_P228: offset = 385;         case CSW_GLOCK18,CSW_MP5NAVY,CSW_TMP,CSW_ELITE: offset = 386;         case CSW_FLASHBANG: offset = 387;         case CSW_HEGRENADE: offset = 388;         case CSW_SMOKEGRENADE: offset = 389;         default: return 0;     }     set_pdata_int(id,offset,amnt,5);           return 1; }

Last edited by AlejandroSk; 04-09-2009 at 17:55.
AlejandroSk is offline
Send a message via MSN to AlejandroSk
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 16:10.


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