View Single Post
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 11-24-2020 , 02:42   Re: Kewaii Roulette in Command
Reply With Quote #6

PHP Code:
public Action CommandRouletteint clientint args )
{
    if( 
client || client MaxClients )
    {
        return 
Plugin_Handled;
    }
    
    if( 
args )
    {
        
ReplyToCommand(client"[SM] Usage: sm_ruleta <culoare_rgb> <suma>");
        return 
Plugin_Handled;
    }
    
    
char argsCmd[16];
    
GetCmdArg1argsCmdsizeofargsCmd ));
    
    
char color[3][8];
    
ExplodeStringargsCmd","colorsizeofcolor ), sizeofcolor[] ));
    
    
int color_rgb[3];
    
color_rgba[0] = StringToIntcolor[0] ); // r
    
color_rgba[1] = StringToIntcolor[1] ); // g
    
color_rgba[2] = StringToIntcolor[2] ); // b
    
    
GetCmdArg2argsCmdsizeofargsCmd ));
    
int money StringToIntargsCmd ); // money
    
    // give them the color here << int color_rgb
    // drain they money here    << int money
    
SpinCreditsclient ); // i suppost this is Spend.. never spin a money.. mama gonna upset.
    
    
return Plugin_Handled;

__________________
If i happen to insulted you unintentionally,
it was me and Google Translate who did it.

Last edited by GsiX; 11-26-2020 at 22:31. Reason: is Ruleta a girl name? something like Seņorita?
GsiX is offline