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

Pick up present v2.01


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   Hawk552 (427)
FakeNick
Senior Member
Join Date: Feb 2008
Location: Poland
Old 12-20-2008 , 12:53   Pick up present v2.01
Reply With Quote #1

Warning : version older than 2.0 aren't supported anymore!

Lastest Version

2.01 ( 23.12.2008 )
  • Fixed small bug with backpack ammo
  • Added large and medium blast ring (nice effect ;])
  • Added CVAR for version recognize
2.0 ( 22.12.2008 )
  • Actuall version is 2.0, because i've totally cleaned up the code
  • New weapon randomizing system
  • Some new cool stuff
Screenshot



Description

This plugin allows admin add/remove/rotate/save presents on map ( ADMIN_KICK flag required).
When player touches present, he can earn money or receive primary/secondary weapon. Present is respawning at the same origins.

Credits
  • Connor - for help with respawn part
  • Alka - for entity rotate/add/remove/save code
  • Avalanche - for blast, light effect and get color information from cvar
  • Mercyllez - for weapon offsets, BackPack ammo checker and some stocks
Requirements
  • Required models & sound (attachment)
  • Fakemeta module
Very Important!
  • Create an folder called "presents" in addons/amxmodx/config/ directory, otherwise plugin won't be able to save presents origins!
  • If you server has an FTP, make CHMOD 777 on "presents" folder in config directory, otherwise plugin won't be able to save presents origins!
  • Plugin works on Counter Strike and Condition zero (thanks crazyeffect for test)
Notes

PHP Code:
new const model_present[][] = { "models/present/w_present.mdl","models/present/w_present2.mdl" }

new const 
sound_respawn[][] = { "present/respawn.wav""present/respawn2.wav" }
new const 
sound_pick[][] = { "present/pick.wav" 
Here player can customize models and sounds.

Languages
  • Polish (by me)
  • Russian (thanks to xPaw)
  • Nl (thanks to crazyeffect)
  • English (by me)
  • Fin (by SnoW)
  • Espanol (benamo6)
  • Brazil (wlacobain)
  • Romanian (rekull)
Admin commands
  • !add - adds a present at admin aim origin
  • !remove - removes a present (admin must aim at present)
  • !removeall - removes all presents from map
  • !save - saves all present created on map
  • !rotate - rotates a present (admin must aim at present)
Cvar's
  • present_on - turn plugin on/off
  • present_respawn_time - time between present disapear and respawn (must be float!)
  • present_blast - turns blast on/off
  • present_blast_color - color of the blast (default 255 255 255)
  • present_money - amount of received money
Attached Files
File Type: sma Get Plugin or Get Source (present.sma - 4287 views - 24.7 KB)
File Type: txt present.txt (5.1 KB, 1941 views)
File Type: zip resources.zip (760.4 KB, 2890 views)
__________________


[||||||||||] Snowball war v3.05

Pol
ish translations here ;) (PM me if you want one).



Last edited by FakeNick; 12-27-2008 at 10:33. Reason: Update
FakeNick is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 12-20-2008 , 12:59   Re: Pick up present v1.0
Reply With Quote #2

One christmas plugin again, sounds nice once again. You should probably give some credit to the guy who hoped this.

Edit: Ofc I'm not sure still http://forums.alliedmods.net/showthread.php?t=81926

Last edited by SnoW; 12-20-2008 at 13:01.
SnoW is offline
Send a message via MSN to SnoW
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-20-2008 , 13:03   Re: Pick up present v1.0
Reply With Quote #3

If all presents are weapons; you could just spawn armoury_entity entities and let the game respawn them, this way you wouldn't have to hook Think and Touch.
__________________
- tired and retired -
ConnorMcLeod is offline
FakeNick
Senior Member
Join Date: Feb 2008
Location: Poland
Old 12-20-2008 , 13:05   Re: Pick up present v1.0
Reply With Quote #4

Maybe, but NOW presents are weapons, soon there will be weapons and other stuff. I'm thinking also about punishments for bad players :].
__________________


[||||||||||] Snowball war v3.05

Pol
ish translations here ;) (PM me if you want one).


FakeNick is offline
Old 12-20-2008, 13:23
crazyeffect
This message has been deleted by crazyeffect.
FakeNick
Senior Member
Join Date: Feb 2008
Location: Poland
Old 12-20-2008 , 13:34   Re: Pick up present v1.0
Reply With Quote #5

Thank you, + karma .
__________________


[||||||||||] Snowball war v3.05

Pol
ish translations here ;) (PM me if you want one).


FakeNick is offline
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 12-20-2008 , 14:24   Re: Pick up present v1.0
Reply With Quote #6

Interesting, but how about money 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
FakeNick
Senior Member
Join Date: Feb 2008
Location: Poland
Old 12-20-2008 , 14:49   Re: Pick up present v1.0
Reply With Quote #7

More stuff will be added soon (maybe today ;] ).
__________________


[||||||||||] Snowball war v3.05

Pol
ish translations here ;) (PM me if you want one).


FakeNick is offline
benamo6
Veteran Member
Join Date: Aug 2008
Location: NeverLand
Old 12-20-2008 , 15:16   Re: Pick up present v1.0
Reply With Quote #8

Maybe you can add gravity (cvar for how many), speed (cvar too), healt (cvar), armor (cvar);
ES VERSION:
Quote:
[es]
SUCC_ADD = [Present] Succesfully created present at origins X:%d, Y:%d, Z:%d!
SUCC_REMOVE = [Present] Present succesfully removed. Now save the origins with command !save
SUCC_SAVE = [Present] Se guardaron correctamente todos los regalos (%d) en el mapa%s!
SUCC_ROTATE = [Present] Rotaste el regalo! Ahora guarda los regalos con el comando !save.
SAVE_INFO = [Present] Guarda los regalos con el comando !save
LOCATION_UN = [Present] Ese lugar no esta disponible!
PRESENT_AIM = [Present] Tenes que apuntar al regalo!
NO_PRESENT = [Present] No hay regalos para vos !
REMOVE_ALL = [Present] Todos los regalos %d fueron removidos!
__________________
Please help me with this Thread
I am 70% addicted to Counterstrike. What about you?
Ill make any spanish translation of a plugin. Just ask for it

Last edited by benamo6; 12-20-2008 at 15:20.
benamo6 is offline
Send a message via MSN to benamo6
FakeNick
Senior Member
Join Date: Feb 2008
Location: Poland
Old 12-20-2008 , 15:19   Re: Pick up present v1.0
Reply With Quote #9

Quote:
More stuff will be added soon (maybe today ;] ).
__________________


[||||||||||] Snowball war v3.05

Pol
ish translations here ;) (PM me if you want one).


FakeNick is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 12-21-2008 , 03:45   Re: Pick up present v1.1
Reply With Quote #10

Plugin works with Condition Zero also, tested it
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
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