Raised This Month: $ Target: $400
 0% 

Help with a blockmaker


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Shadezz
Senior Member
Join Date: Jul 2009
Location: Denmark
Old 03-12-2010 , 10:08   Help with a blockmaker
Reply With Quote #1

Hey guys, ive been messing arround with a BlockMaker (like Bollnas teams) with everything needed, but i got a problem with the money and the pole blocks. ( got it like this of a friend and tried to fix it.)

when i add a pole block to the server the server shuts down, and at the money block, when i make it no matter how much gold i set it too it gives me like 1000000 money, i got a MoneyMod working on it too, but i dont think thats the problem?? could any1 try have a look at it?

EDIT: there was some whiners in here, so i just posted the pole code and money block code.. pff, get off whiners

PHP Code:
for pole:
        
SetBlockModelName(block_modelg_block_models[i], "Pole");

        case 
POLE:    size "Pole";

            if( 
size == POLE)
            {
                
size_min[0] = -32.0;
                
size_min[1] = -4.0;
                
size_min[2] = -4.0;
                
                
size_max[0] = 32.0;
                
size_max[1] = 4.0;
                
size_max[2] = 4.0;
            }
            
            
size_min[0] = -4.0;
            
size_min[1] = -32.0;
            
size_min[2] = -32.0;
            
            
size_max[0] = 4.0;
            
size_max[1] = 32.0;
            
size_max[2] = 32.0;
            
            
angles[0] = 90.0;
        }
        case 
Y:
        {
            
size_min[0] = -32.0;
            
size_min[1] = -4.0;
            
size_min[2] = -32.0;
            
            
size_max[0] = 32.0;
            
size_max[1] = 4.0;
            
size_max[2] = 32.0;
            
            
angles[0] = 90.0;
            
angles[2] = 90.0;
            
            if( 
size == POLE)
            {
                
size_min[0] = -4.0;
                
size_min[1] = -32.0;
                
size_min[2] = -4.0;
                
                
size_max[0] = 4.0;
                
size_max[1] = 32.0;
                
size_max[2] = 4.0;
            }
        }
        case 
Z:
        {
            
size_min[0] = -32.0;
            
size_min[1] = -32.0;
            
size_min[2] = -4.0;
            
            
size_max[0] = 32.0;
            
size_max[1] = 32.0;
            
size_max[2] = 4.0;
            
            
angles[0] = 0.0;
            
angles[1] = 0.0;
            
angles[2] = 0.0;
            
            if( 
size == POLE)
            {
                
size_min[0] = -4.0;
                
size_min[1] = -4.0;
                
size_min[2] = -32.0;
                
                
size_max[0] = 4.0;
                
size_max[1] = 4.0;
                
size_max[2] = 32.0;
            }
        }
    }
    
        case 
POLE:
        {
            
SetBlockModelName(block_modelg_block_models[block_type], "Pole");
            
scale 1.0;

        else if ( 
max_size 32.0 )    size POLE;

        case 
LARGE:    g_selected_block_size[id] = POLE;
        case 
POLE:    g_selected_block_size[id] = TINY;

    else if ( 
max_size 32.0 )    size POLE;


The money block action:
ActionMoney(ident)
{
    if(
g_money_used[id])
    {
        static 
property[5];
        new 
AddValue[33], playerMoney[33];
        
GetProperty(ent1property);
        
playerMoney[id] = mm_get_user_money(id);
        
AddValue[id] = str_to_float(property) + playerMoney[id];
        
mm_set_user_money(idAddValue[id]);
        
g_money_used[id] = false;
        
BCM_Print(id"You have been given %s $!"property);
    }
    else{
        
set_hudmessage(025500.010.1800.01.00.250.252);
        
show_hudmessage(id"%s %s^nNext Use: Next Round"PLUGIN_PREFIXPLUGIN_VERSION);
    }

__________________

Last edited by Shadezz; 03-12-2010 at 11:46.
Shadezz is offline
Crazybeer
BANNED
Join Date: Jan 2010
Location: The Pacifier
Old 03-12-2010 , 10:16   Re: Help with a blockmaker
Reply With Quote #2

EDIT: Thanks Shadezz for changed it.

Last edited by Crazybeer; 03-12-2010 at 13:12.
Crazybeer is offline
lazarev
Veteran Member
Join Date: Sep 2008
Old 03-12-2010 , 10:22   Re: Help with a blockmaker
Reply With Quote #3

Nice leak?
lazarev is offline
Shadezz
Senior Member
Join Date: Jul 2009
Location: Denmark
Old 03-12-2010 , 10:37   Re: Help with a blockmaker
Reply With Quote #4

it aint a leak lol, this is done by Reverse, i just set the models to bollnas due to that was the only models i had to work with. stop flaming.


EDIT: and even if u read the first post "got it like this of a friend and tried to fix it"
__________________
Shadezz is offline
anka
Junior Member
Join Date: Nov 2009
Old 03-12-2010 , 10:42   Re: Help with a blockmaker
Reply With Quote #5

Its made by Reverse, Omgz.
anka is offline
Crazybeer
BANNED
Join Date: Jan 2010
Location: The Pacifier
Old 03-12-2010 , 13:12   Re: Help with a blockmaker
Reply With Quote #6

No this one is made by LaineN.
Crazybeer is offline
Shadezz
Senior Member
Join Date: Jul 2009
Location: Denmark
Old 03-12-2010 , 13:19   Re: Help with a blockmaker
Reply With Quote #7

Well atleast i got this of a friend, so stop whining anyways.
__________________
Shadezz is offline
Kellan123
AlliedModders Donor
Join Date: Aug 2012
Old 12-18-2012 , 15:42   Re: Help with a blockmaker
Reply With Quote #8

Ohh tnx Shadezz
Kellan123 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:41.


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