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

Mario Coins


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 02-14-2011 , 15:48   Mario Coins
Reply With Quote #1

Mario Coins








Description:

Collect coins from dead bodies to reach the "thing" called 1UP. If you have 1UP you will respawn after death!
Should work on CZ too.


Cvars:

- mc_bodycoin - 1 [how many coins will players pick up from a dead body]
- mc_maxcoins - 4 [how much coins you will need to collect until you will have 1UP]
- mc_respawntime - 10 [respawn time if you have 1UP]
- mc_glowcoin - 1 [enable or disable coin glowing]
- mc_enabled - 1 [enable or disable the plugin]


Modules:

- fakemeta
- engine
- hamsandwich
- cstrike


Credits:

- apocalips for the coin model[no more used]
- HunterDigital for the new coin model, from now the coin will spin+float xD
- HamletEagle for some code tweaking and optimisations


Image:

.
Attached Files
File Type: zip mario_coins.zip (34.0 KB, 884 views)
File Type: sma Get Plugin or Get Source (MarioCoins.sma - 1546 views - 8.2 KB)
__________________

Last edited by tuty; 12-28-2015 at 12:49.
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 02-14-2011 , 16:04   Re: Mario Coins
Reply With Quote #2

Nice idea, I like it!
__________________
Retired.
Xalus is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-14-2011 , 16:27   Re: Mario Coins
Reply With Quote #3

Hook_DeathMessage()

- szWeapon is not used.
- bCountTokenCoins[ iVictim ] >= get_pcvar_num( gCvarPluginMaxCoinsForLife ) ; please test your plugin before releasing. The test is wrong and you won't respawn like this.
- You could use directly create_entity()
- Check if entity is valid before setting origin
- Why PLUGIN_HANDLED ? There is no point to return that.
- AFAIK, info_target is a dummy entity, using DLLFunc_Spawn won't do nothing.
__________________

Last edited by Arkshine; 02-14-2011 at 16:59.
Arkshine is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 02-14-2011 , 16:33   Re: Mario Coins
Reply With Quote #4

ups the code was done one year ago. =] thanks arkshine, idk why i used weapon, i will recheck that, please understand me i made this code one year ago xD
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-14-2011 , 16:35   Re: Mario Coins
Reply With Quote #5

I understand, but don't release because it's cool. Please test your plugins before.
__________________
Arkshine is offline
tuty
Veteran Member
Join Date: Jul 2008
Location: UK
Old 02-14-2011 , 16:39   Re: Mario Coins
Reply With Quote #6

i tested this before and that check works fine i got some screenshots and everything seems okay..
__________________
tuty is offline
Send a message via ICQ to tuty Send a message via AIM to tuty
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-14-2011 , 16:57   Re: Mario Coins
Reply With Quote #7

Ok, I think I've understood wrongly the purpose of the cvar. I thought you could respawn # times (max being MaxCoinsForLife)
__________________
Arkshine is offline
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 02-14-2011 , 18:51   Re: Mario Coins
Reply With Quote #8

Cool , Fantastic a plugin GJ
__________________
Erdener is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 02-18-2011 , 09:44   Re: Mario Coins
Reply With Quote #9

WB Tuty
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Kidev
Veteran Member
Join Date: Jun 2010
Location: France
Old 02-18-2011 , 12:41   Re: Mario Coins
Reply With Quote #10

Nice! Screenshots?

But doesn't work... When I kill someone, there is no coins... Aswell the plugin is loaded...
__________________

Last edited by Kidev; 02-18-2011 at 15:06.
Kidev 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 14:29.


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