Raised This Month: $ Target: $400
 0% 

Gamble mod


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-22-2012 , 09:59   Re: Gamble mod
Reply With Quote #1

Code:
#include < amxmodx > #define WIN_PERCENT 50 public plugin_init( ) {     register_plugin( "Gamble Mod", "0.0.1", "Exolent" );         register_clcmd( "say /gamble"     , "CmdGamble" );     register_clcmd( "say_team /gamble", "CmdGamble" ); } public CmdGamble( iPlayer ) {     if( random_num( 1, 100 ) <= WIN_PERCENT )     {         client_print( iPlayer, print_chat, "* You won!" );     }     else     {         client_print( iPlayer, print_chat, "* You lost!" );     } }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 08:38.


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