Raised This Month: $ Target: $400
 0% 

Run Time Error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-11-2005 , 00:12  
Reply With Quote #2

Code:
public MultSelfSlap ( id ) {     if ( get_cvar_num ( "aios_msSlaps" ) != 1 ) {         client_print ( id, print_console, "[AIOS] Sorry this function is turned OFF" )         return PLUGIN_HANDLED     }     new name[32]     get_user_name ( id, name, 31 )     new argv[32]     read_argv ( 1, argv, 31 )     new msNum     msNum = str_to_num ( argv )     if ( msNum > 100 ) {         client_print ( id, print_console, "[AIOS] You cannot slap yourself more than 100 times" )         return PLUGIN_HANDLED     }     new MAX_SLAPS = get_cvar_num ( "aios_msLimit" )     if ( msSlaps[id] > MAX_SLAPS ) {         client_print ( id, print_console, "[AIOS] Sorry %s : You have used this function too many times this round", name )         return PLUGIN_HANDLED     }     new SlapDmg = get_cvar_num ( "aios_SlapDmg" )     for ( new i = 0; i < msNum; i++ )     {         user_slap ( id, SlapDmg )     }     msSlaps[id]++     new r = random ( 256 )     new g = random ( 256 )     new b = random ( 256 )         set_hudmessage ( r, g, b, 0.03, 0.62, 2, 0.02, 6.0, 0.01, 0.1, 1 )     show_hudmessage ( 0, "[AIOS] %s : Has slapped himself %d times", name, msNum )     console_print ( 0, "[AIOS] Client %s : Has slapped himself %d times", name, msNum )     return PLUGIN_HANDLED }
xeroblood is offline
Send a message via MSN to xeroblood
 



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 13:59.


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