Raised This Month: $51 Target: $400
 12% 

[ZP] Extra Item: [Pro-Gammer] v1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Raddish
BANNED
Join Date: Jul 2008
Location: Argentina
Old 09-15-2009 , 19:23   [ZP] Extra Item: [Pro-Gammer] v1.1
Reply With Quote #1

Extra item [ProGammer] v1.1

Changelog
---------------------------------------------------------------
Version v1.1
All bugs fixed. Added cvars and optimization code

Version v1.0
Version with many bugs
---------------------------------------------------------------

Cvars

zp_progammer_health <250>
zp_progammer_cost <45>
zp_progammer_gravity <0.5>
zp_progammer_armor <300>
zp_progammer_speed <300>
zp_progammer_glow <1>
zp_progammer_glow_red <255>
zp_progammer_glow_green <0>
zp_progammer_glow_blue <0>
zp_progammer_glow_ammount <10>
zp_progammer_give_weapons <1>
zp_progammer_give_nades <1>
zp_progammer_nade_count <2>

Customizable

-Health-
-Armor-
-Cost-
-Gravity-
-Speed-
-Turn Glow ON/OFF-
-Glow R-
-Glow G-
-Glow B-
-Glow Ammount-
-Give Weapons-
-Give Nades-
-Nades Ammount-

Thanks to
___________________
FranckitowOw' <Asd'>
(For Test My plugin)
______________________

Report Me All Bugs.
---------------------------------------------------------------------------------------
Attached Files
File Type: sma Get Plugin or Get Source (zp_extraitem_progammer.sma.sma - 767 views - 2.9 KB)

Last edited by Raddish; 09-15-2009 at 19:27.
Raddish is offline
Co0k!E$ HaMStE$
BANNED
Join Date: Aug 2009
Location: Cookies Land, Mars
Old 09-15-2009 , 20:05   Re: [ZP] Extra Item: [Pro-Gammer] v1.1
Reply With Quote #2

what is it? lol so its like a dude buy thats and has like more HP and speed? D: and im gussing its only for humans?....

Last edited by Co0k!E$ HaMStE$; 09-15-2009 at 20:09.
Co0k!E$ HaMStE$ is offline
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 09-15-2009 , 20:17   Re: [ZP] Extra Item: [Pro-Gammer] v1.1
Reply With Quote #3

PHP Code:
g_itemid zp_register_extra_item("Comprar [Pro-Gammer]"1ZP_TEAM_HUMAN

ROLFMAO

Also, this plugin has a bug.
I can buy 1 and again on this same plugin.

And please, put all the texts in English.

and look this.


PHP Code:
cvar_red register_cvar("zp_progammer_glow_red""255"); // Red
cvar_green register_cvar("zp_progammer_glow_green""0"); // Green
cvar_blue register_cvar("zp_progammer_glow_blue""0"); // Blue 

It would be easier to define the 3 cvars in an alone?
and


PHP Code:
public start()
{
 
strip_user_weapons(0)
 
set_user_health(0100)
 
set_user_armor(00)
 
set_user_gravity(01.0)
 
set_user_maxspeed(0250.0)[/left]



Explain one thing.


To put it to the Start () if at any time you use it?
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.

Last edited by lucas_7_94; 09-15-2009 at 20:31.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 09-15-2009 , 21:55   Re: [ZP] Extra Item: [Pro-Gammer] v1.1
Reply With Quote #4

Player's max speed should be hooked on client PreThink or CurWeapon
__________________
"There is no knowledge, that is not power"
fezh is offline
GmTx
BANNED
Join Date: May 2009
Location: Mountains [BG/Sofia]
Old 09-16-2009 , 03:27   Re: [ZP] Extra Item: [Pro-Gammer] v1.1
Reply With Quote #5

PHP Code:
give_item(id"CSW_M4A1"
-->
PHP Code:
give_item(id"weapon_m249"
Or use fakemeta
GmTx is offline
Send a message via Skype™ to GmTx
nicolazo103
Veteran Member
Join Date: Jan 2009
Location: I have no fu*** idea
Old 09-16-2009 , 20:38   Re: [ZP] Extra Item: [Pro-Gammer] v1.1
Reply With Quote #6

Quote:
set_user_maxspeed(id, get_pcvar_float(cvar_speed))
I told you about this. It doesnīt work in ZP. Use PreThink

Quote:
set_user_armor(id, get_pcvar_num(cvar_armor))
-->

Quote:
set_user_armor(id, get_user_armor(id) + get_pcvar_num(cvar_armor))
This is something different, but, if you have more armor than the cvar, you will lose it

Quote:
public start ()
{
strip_user_weapons(0)
set_user_health(0, 100)
set_user_armor(0, 0)
set_user_gravity(0, 1.0)
set_user_maxspeed(0, 250.0)
}
I didnīt see any bug with this, but a bool is better
__________________
Why do they send babies to fight me? -Heavy


Last edited by nicolazo103; 09-16-2009 at 21:20.
nicolazo103 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 06:39.


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