Raised This Month: $ Target: $400
 0% 

[req]respawn chance when die


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
r14170
Veteran Member
Join Date: Dec 2009
Old 03-06-2010 , 21:36   [req]respawn chance when die
Reply With Quote #1

can some1 script me a plugin ... when you get killed u have 10 % to respawn WITHOUT typing anything ?
r14170 is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-06-2010 , 22:13   Re: [req]respawn chance when die
Reply With Quote #2

Code:
#include <amxmodx> #include <hamsandwich> // 1 in CHANCE to win, ex: 2 for 50% #define CHANCE  10 new const VERSION[] = "0.0.1" public plugin_init() {     register_plugin( "Random Spawn Chance", VERSION, "Wrecked" ) // :avast:         register_event( "DeathMsg", "EV_DeathMsg", "a" ) } public EV_DeathMsg() {     new victim = read_data( 2 )         new rnum = random_num(1, CHANCE)         if( rnum == 2 )     {         ExecuteHamB( Ham_CS_RoundRespawn, victim )                 client_print( victim, print_chat, "You won the random respawn!" )                 new name[64]         get_user_name( victim, name, 63 )                 client_print( 0, print_chat, "%s has won the random respawn chance!", name )     } }
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT

Last edited by wrecked_; 03-06-2010 at 23:47.
wrecked_ is offline
sungersoo
Junior Member
Join Date: Mar 2010
Old 03-06-2010 , 23:28   Re: [req]respawn chance when die
Reply With Quote #3

How do I switch it so it's a 50% chance? Would be nice for deathrun...
sungersoo is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 03-06-2010 , 23:46   Re: [req]respawn chance when die
Reply With Quote #4

Like it says in the define, make CHANCE 2.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
sungersoo
Junior Member
Join Date: Mar 2010
Old 03-06-2010 , 23:49   Re: [req]respawn chance when die
Reply With Quote #5

I should learn how to read.
sungersoo is offline
r14170
Veteran Member
Join Date: Dec 2009
Old 03-07-2010 , 05:44   Re: [req]respawn chance when die
Reply With Quote #6

wrecked_ i love you man :] thx a lot

P.S. you should release that :}

Last edited by r14170; 03-07-2010 at 05:47.
r14170 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 01:12.


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