Raised This Month: $100 Target: $400
 25% 

Subplugin Submission [ZP] Extra Item: Antidote Laser v1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Hawk552 (427)
ILUSION
Senior Member
Join Date: Oct 2006
Location: Argentina
Old 07-10-2009 , 06:45   [ZP] Extra Item: Antidote Laser v1.1
Reply With Quote #1

You have 3 shots, you can use they with the "use" button. If you are aiming a zombie and press the "use" button the zombie come human and you obtained X ammo packs and X frags.

The amount of frags and ammo packs has been set by these cvars:

zp_human_frags_for_kill
zp_zombie_infect_reward

Cvars:
zp_laser_shots - Sets the max amount of shots

Changelog:
Quote:
v1.0 - First release.
v1.1 - Added ML Support (Thanks crazyeffect !)
Translations:
Code:
[en] ILUSION
[es] ILUSION
[nl] crazyeffect
Screenshots:
[IMG]http://img23.**************/img23/8942/88776524.th.jpg[/IMG] [IMG]http://img141.**************/img141/5785/48146208.th.jpg[/IMG] [IMG]http://img269.**************/img269/5512/59962295.th.jpg[/IMG]

Sorry for my english
Attached Files
File Type: sma Get Plugin or Get Source (zp_laser.sma - 10997 views - 5.7 KB)
File Type: zip zp_laser.zip (25.0 KB, 8201 views)

Last edited by ILUSION; 08-11-2009 at 01:21.
ILUSION is offline
padilha007
Senior Member
Join Date: Jul 2008
Old 07-10-2009 , 10:53   Re: [ZP] Extra Item: Antidote Laser
Reply With Quote #2

good work.
__________________

padilha007 is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 07-10-2009 , 11:36   Re: [ZP] Extra Item: Antidote Laser
Reply With Quote #3

Good job.

I think you should rename the actions and bools in the code, looks spanish. Not that there is anything wrong with spanish, but english is more appropriate in this community.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
ILUSION
Senior Member
Join Date: Oct 2006
Location: Argentina
Old 07-10-2009 , 11:53   Re: [ZP] Extra Item: Antidote Laser
Reply With Quote #4

Quote:
Originally Posted by padilha007 View Post
good work.
Quote:
Originally Posted by Xellath View Post
Good job.
Thanks

Quote:
Originally Posted by Xellath View Post
I think you should rename the actions and bools in the code, looks spanish. Not that there is anything wrong with spanish, but english is more appropriate in this community.
Is spanish. Done.
ILUSION is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 07-10-2009 , 12:06   Re: [ZP] Extra Item: Antidote Laser
Reply With Quote #5

PHP Code:
stock fm_set_user_deaths(idvalue)
{
    
set_pdata_int(idOFFSET_CSDEATHSvalueOFFSET_LINUX)
}

stock fm_get_user_deaths(id)
{
    return 
get_pdata_int(idOFFSET_CSDEATHSOFFSET_LINUX);
}

stock fm_get_user_team(id)
{
    return 
get_pdata_int(idOFFSET_CSTEAMSOFFSET_LINUX);

Use natives from cstrike
__________________
xPaw is offline
ILUSION
Senior Member
Join Date: Oct 2006
Location: Argentina
Old 07-10-2009 , 23:48   Re: [ZP] Extra Item: Antidote Laser
Reply With Quote #6

Quote:
Originally Posted by xPaw View Post
PHP Code:
stock fm_set_user_deaths(idvalue)
{
    
set_pdata_int(idOFFSET_CSDEATHSvalueOFFSET_LINUX)
}

stock fm_get_user_deaths(id)
{
    return 
get_pdata_int(idOFFSET_CSDEATHSOFFSET_LINUX);
}

stock fm_get_user_team(id)
{
    return 
get_pdata_int(idOFFSET_CSTEAMSOFFSET_LINUX);

Use natives from cstrike
Done. Files updated.
ILUSION is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: Romania
Old 07-11-2009 , 13:30   Re: [ZP] Extra Item: Antidote Laser
Reply With Quote #7

PHP Code:
engfunc(EngFunc_EmitSound
use

PHP Code:
emit_sound 
PHP Code:
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(27)
    
write_coord(origin[0]) // x
    
write_coord(origin[1]) // y
    
write_coord(origin[2]) // z
    
write_byte(40
    
write_byte(0// r
    
write_byte(128// g
    
write_byte(255// b
    
write_byte(100)
    
write_byte(10)
    
write_byte(1)
    
message_end()

    
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(0)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_coord(ofin[0])
    
write_coord(ofin[1])
    
write_coord(ofin[2])
    
write_short(laser
    
write_byte(5)
    
write_byte(5)
    
write_byte(3)
    
write_byte(25)
    
write_byte(5)
    
write_byte(0)
    
write_byte(128)
    
write_byte(255)
    
write_byte(100)
    
write_byte(200)
    
message_end()
    
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(14)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_byte(240)
    
write_byte(120)
    
write_byte(5
    
message_end() 
to

PHP Code:
   message_beginMSG_PVSSVC_TEMPENTITYorigin )
   
write_byte(TE_DLIGHT)
   
write_coord(origin[0]) // x
   
write_coord(origin[1]) // y
   
write_coord(origin[2]) // z
   
write_byte(40
   
write_byte(0// r
   
write_byte(128// g
   
write_byte(255// b
   
write_byte(100)
   
write_byte(10)
   
write_byte(1)
   
message_end()

    
message_begin(MSG_PVSSVC_TEMPENTITY)
    
write_byte(TE_BEAMPOINTS)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_coord(ofin[0])
    
write_coord(ofin[1])
    
write_coord(ofin[2])
    
write_short(laser
    
write_byte(5)
    
write_byte(5)
    
write_byte(3)
    
write_byte(25)
    
write_byte(5)
    
write_byte(0)
    
write_byte(128)
    
write_byte(255)
    
write_byte(100)
    
write_byte(200)
    
message_end()
    
    
message_begin(MSG_PVSSVC_TEMPENTITYorigin)
    
write_byte(TE_IMPLOSION)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_byte(240)
    
write_byte(120)
    
write_byte(5
    
message_end() 
__________________
All my lifetime work is there (includin private big ass plugins and stuff) https://github.com/tutyamxx

tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
alias_retaer
Member
Join Date: Jul 2009
Old 07-11-2009 , 14:09   Re: [ZP] Extra Item: Antidote Laser
Reply With Quote #8

nice
alias_retaer is offline
Starsailor
horrible hahah
Join Date: Aug 2008
Location: Buenos Aires
Old 07-11-2009 , 14:16   Re: [ZP] Extra Item: Antidote Laser
Reply With Quote #9

PHP Code:
shots register_cvar("zp_tiros_laser""3"
---->

PHP Code:
shots register_cvar("zp_laser_shoots""3"
Like Xellath said, english is more appropriate in this community
__________________
Find my plugins here..

Ex - Spanish Moderator.
Starsailor is offline
ILUSION
Senior Member
Join Date: Oct 2006
Location: Argentina
Old 07-12-2009 , 05:45   Re: [ZP] Extra Item: Antidote Laser
Reply With Quote #10

Quote:
Originally Posted by tuty View Post
PHP Code:
engfunc(EngFunc_EmitSound
use

PHP Code:
emit_sound 
PHP Code:
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(27)
    
write_coord(origin[0]) // x
    
write_coord(origin[1]) // y
    
write_coord(origin[2]) // z
    
write_byte(40
    
write_byte(0// r
    
write_byte(128// g
    
write_byte(255// b
    
write_byte(100)
    
write_byte(10)
    
write_byte(1)
    
message_end()

    
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(0)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_coord(ofin[0])
    
write_coord(ofin[1])
    
write_coord(ofin[2])
    
write_short(laser
    
write_byte(5)
    
write_byte(5)
    
write_byte(3)
    
write_byte(25)
    
write_byte(5)
    
write_byte(0)
    
write_byte(128)
    
write_byte(255)
    
write_byte(100)
    
write_byte(200)
    
message_end()
    
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY)
    
write_byte(14)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_byte(240)
    
write_byte(120)
    
write_byte(5
    
message_end() 
to

PHP Code:
   message_beginMSG_PVSSVC_TEMPENTITYorigin )
   
write_byte(TE_DLIGHT)
   
write_coord(origin[0]) // x
   
write_coord(origin[1]) // y
   
write_coord(origin[2]) // z
   
write_byte(40
   
write_byte(0// r
   
write_byte(128// g
   
write_byte(255// b
   
write_byte(100)
   
write_byte(10)
   
write_byte(1)
   
message_end()

    
message_begin(MSG_PVSSVC_TEMPENTITY)
    
write_byte(TE_BEAMPOINTS)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_coord(ofin[0])
    
write_coord(ofin[1])
    
write_coord(ofin[2])
    
write_short(laser
    
write_byte(5)
    
write_byte(5)
    
write_byte(3)
    
write_byte(25)
    
write_byte(5)
    
write_byte(0)
    
write_byte(128)
    
write_byte(255)
    
write_byte(100)
    
write_byte(200)
    
message_end()
    
    
message_begin(MSG_PVSSVC_TEMPENTITYorigin)
    
write_byte(TE_IMPLOSION)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_byte(240)
    
write_byte(120)
    
write_byte(5
    
message_end() 
No. In Zombie Plague "emit_sound" function has no effect.

btw: all ready.
ILUSION is offline
Reply


Thread Tools
Display Modes

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 05:16.


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