Raised This Month: $32 Target: $400
 8% 

[ Solved ] Une chance sur deux ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Aooka
Veteran Member
Join Date: Aug 2011
Location: Villeurbanne
Old 05-10-2012 , 11:26   [ Solved ] Une chance sur deux ?
#1

Sujet résolu désolé du sujet inutile ... Je laisse tout de même le plugin.


Code:
#include < amxmodx > #include < fun > public plugin_init( ) {     register_plugin( "Spawn Chance" , "1.0" , "Aooka" );         register_clcmd( "say spawn" , "SpawnChance" );     register_clcmd( "say /spawn" , "SpawnChance" ); } public SpawnChance( id ) {     if( is_user_alive( id ) )     {         new iRandom = random_num( 1 , 2 )                 switch( iRandom )         {             case 1: Perdant( id );             case 2: Gagnant( id );         }     }     else     {         return PLUGIN_HANDLED;     }     return PLUGIN_CONTINUE; } public Perdant( id ) {     client_print( id , print_center , "[SPAWN CHANCE] Vous n'allez pas revivre" );     return PLUGIN_HANDLED; } public Gagnant( id ) {     client_print( id , print_center , "[SPAWN CHANCE] Vous allez revivre" );     spawn( id ); }
__________________
Pawn ? Useless

Last edited by Aooka; 05-10-2012 at 11:42.
Aooka is offline
 



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 17:14.


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