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

Deathrun rewards


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bat
Veteran Member
Join Date: Jul 2012
Old 05-08-2013 , 04:28   Deathrun rewards
Reply With Quote #1

Hi all bro help me please with plugin for deathrun
After kill appear list rewards (Life,8000$,Grenade)
__________________
bat is offline
Send a message via Skype™ to bat
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-08-2013 , 06:05   Re: Deathrun rewards
Reply With Quote #2

Quote:
Originally Posted by bat View Post
Hi all bro help me please with plugin for deathrun
After kill appear list rewards (Life,8000$,Grenade)
your signature states that you make Plugins for money. why can't you make this one?
__________________
Blizzard_87 is offline
bat
Veteran Member
Join Date: Jul 2012
Old 05-08-2013 , 06:12   Re: Deathrun rewards
Reply With Quote #3

Quote:
Originally Posted by Blizzard_87 View Post
your signature states that you make Plugins for money. why can't you make this one?
Not on theme
__________________
bat is offline
Send a message via Skype™ to bat
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-08-2013 , 06:16   Re: Deathrun rewards
Reply With Quote #4

Quote:
list rewards (Life,8000$,Grenade)
in a menu ?
__________________
Blizzard_87 is offline
bat
Veteran Member
Join Date: Jul 2012
Old 05-08-2013 , 06:16   Re: Deathrun rewards
Reply With Quote #5

Quote:
Originally Posted by Blizzard_87 View Post
in a menu ?
yes :*
__________________
bat is offline
Send a message via Skype™ to bat
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-08-2013 , 06:22   Re: Deathrun rewards
Reply With Quote #6

and the Life... what you want to happen with that item? adds the ability to respawn after you die? or ?
and the Grenade HE ?
__________________
Blizzard_87 is offline
bat
Veteran Member
Join Date: Jul 2012
Old 05-08-2013 , 06:25   Re: Deathrun rewards
Reply With Quote #7

Yes i adding in the deathrun manager code posting of life and he grenade
__________________
bat is offline
Send a message via Skype™ to bat
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-08-2013 , 06:26   Re: Deathrun rewards
Reply With Quote #8

Quote:
Originally Posted by bat View Post
Yes i adding in the deathrun manager code posting of life and he grenade
ok so what do you exactly want this menu to do when it shows to the player who killed someone.?
__________________
Blizzard_87 is offline
bat
Veteran Member
Join Date: Jul 2012
Old 05-08-2013 , 06:28   Re: Deathrun rewards
Reply With Quote #9

yes player attacker after kill appaper list item ( He grenade, Life, 8000$)
__________________
bat is offline
Send a message via Skype™ to bat
Blizzard_87
Veteran Member
Join Date: Oct 2012
Old 05-08-2013 , 06:36   Re: Deathrun rewards
Reply With Quote #10

just a quick write up not sure if its what your looking for...
Code:
#include < amxmodx > #include < amxmisc > #include < fun > #include < hamsandwich > #include < cstrike > #define PLUGIN "DeathRun Rewards" #define VERSION "1.0" #define AUTHOR "Blizzard" public plugin_init() {     register_plugin( PLUGIN, VERSION, AUTHOR )         register_event( "DeathMsg", "Event_DeathMsg", "a" ); } public Event_DeathMsg() {     new iAttacker = read_data( 1 );     new iVictim = read_data( 2 );         if( iVictim != iAttacker )     {         Show_RewardMenu( iAttacker );     }     } public Show_RewardMenu( id ) {     new menu = menu_create( "DeathRun Rewards", "Reward_Handler" );         menu_additem( menu, "Life", "1", 0 );     menu_additem( menu, "$8000", "2", 0 );     menu_additem( menu, "Grenade", "3", 0 );         menu_display( id, menu, 0 );     return PLUGIN_HANDLED; } public Reward_Handler( id, menu, item ) {     if( item == MENU_EXIT )     {         menu_destroy( menu );         return PLUGIN_HANDLED;     }         switch( item )     {         case 0: GiveLife( id );         case 1: GiveCash( id );         case 2: GiveNade( id );     }         menu_destroy( menu );     return PLUGIN_HANDLED; } public GiveLife( id ) {     // add your deathrun life code here. } public GiveCash( id ) {     if( is_user_connected( id ) )     {         new money = cs_get_user_money( id );         if( money + 8000 > 16000 )             cs_set_user_money( id, 16000, 1 );         else {             cs_set_user_money( id, money + 8000, 1 );         }     } }         public GiveNade( id ) {     if( is_user_connected( id ) )         give_item( id, "weapon_hegrenade" ); }
__________________
Blizzard_87 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 00:44.


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