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

blockmaker_v4.01 [BM]


Post New Thread Reply   
 
Thread Tools Display Modes
LaineN
Veteran Member
Join Date: Mar 2008
Location: Sweden
Old 04-09-2009 , 14:17   Re: blockmaker_v4.01 [BM]
Reply With Quote #1081

You should only download blockmaker_v4.01.zip.
__________________
Bollnas Team - HideNSeek

See all of Bollnas Team's HideNSeek
servers at
http://bollnasteam.se/!

LaineN is offline
radoslawlol666
Junior Member
Join Date: Apr 2009
Old 04-10-2009 , 11:59   Re: blockmaker_v4.01 [BM]
Reply With Quote #1082

Do you know where can I download gratisserver.nu blocks models? I will be very gratefull.
radoslawlol666 is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 04-10-2009 , 12:01   Re: blockmaker_v4.01 [BM]
Reply With Quote #1083

Try downloading them by going on their server(s), lol.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
radoslawlol666
Junior Member
Join Date: Apr 2009
Old 04-10-2009 , 13:35   Re: blockmaker_v4.01 [BM]
Reply With Quote #1084

Quote:
Originally Posted by DarkGod View Post
Try downloading them by going on their server(s), lol.
Good idea.
Ok, I have their models but it's not working for me now. :/ When I type /bm and try create a block my CS is suspending... Can you help me? I dont know what should i do.

Last edited by radoslawlol666; 04-10-2009 at 15:23.
radoslawlol666 is offline
nadavafuta
Junior Member
Join Date: Oct 2008
Old 04-13-2009 , 09:41   Re: blockmaker_v4.01 [BM]
Reply With Quote #1085

I see that this part:
Code:
/***** FILE HANDLING *****/
saveBlocks(id)
{
    //make sure player has access to this command
    if (get_user_flags(id) & BM_ADMIN_LEVEL)
    {
        new file = fopen(gszNewFile, "wt");
        new ent = -1;
        new blockType;
        new Float:vOrigin[3];
        new Float:vAngles[3];
        new Float:vStart[3];
        new Float:vEnd[3];
        new blockCount = 0;
        new teleCount = 0;
        new timerCount = 0;
        new szData[128];
        new Float:fMax;
        new size;
        new Float:vSizeMax[3];
        
        while ((ent = find_ent_by_class(ent, gszBlockClassname)))
        {
            //get block info
            blockType = entity_get_int(ent, EV_INT_body);
            entity_get_vector(ent, EV_VEC_origin, vOrigin);
            entity_get_vector(ent, EV_VEC_angles, vAngles);
            entity_get_vector(ent, EV_VEC_maxs, vSizeMax);
            
            size = SMALL;
            fMax = vSizeMax[0] + vSizeMax[1] + vSizeMax[2];
            if (fMax > 64.0) size = NORMAL;
            if (fMax > 128.0) size = LARGE;
            
            //format block info and save it to file
            formatex(szData, 128, "%c %f %f %f %f %f %f %d^n", gBlockSaveIds[blockType], vOrigin[0], vOrigin[1], vOrigin[2], vAngles[0], vAngles[1], vAngles[2], size);
            fputs(file, szData);
            
            //increment block count
            ++blockCount;
        }
        
        //iterate through teleport end entities because you can't have an end without a start
        ent = -1;
        
        while ((ent = find_ent_by_class(ent, gszTeleportEndClassname)))
        {
            //get the id of the start of the teleporter
            new tele = entity_get_int(ent, EV_INT_iuser1);
            
            //check that start of teleport is a valid entity
            if (tele)
            {
                //get the origin of the start of the teleport and save it to file
                entity_get_vector(tele, EV_VEC_origin, vStart);
                entity_get_vector(ent, EV_VEC_origin, vEnd);
                
                formatex(szData, 128, "%c %f %f %f %f %f %f^n", gTeleportSaveId, vStart[0], vStart[1], vStart[2], vEnd[0], vEnd[1], vEnd[2]);
                fputs(file, szData);
                
                //2 teleport entities count as 1 teleporter
                ++teleCount;
            }
        }
        
        //iterate through timer end entities because you can't have an end without a start
        ent = -1;
        
        while ((ent = find_ent_by_class(ent, gszTimerClassname)))
        {
            //get the type of timer
            new timerType = entity_get_int(ent, EV_INT_body);
            
            //timer type must be an end
            if (timerType == TIMER_END)
            {
                //get the id of the start of the timer
                new timer = entity_get_int(ent, EV_INT_iuser1);
                
                //check that start of timer is a valid entity
                if (timer)
                {
                    //get the origin of the start of the timer and its angles
                    entity_get_vector(timer, EV_VEC_origin, vStart);
                    entity_get_vector(timer, EV_VEC_angles, vAngles);
                    
                    //save the start timer information to file
                    formatex(szData, 128, "%c %f %f %f %f %f %f^n", gTimerSaveId, vStart[0], vStart[1], vStart[2], vAngles[0], vAngles[1], vAngles[2]);
                    fputs(file, szData);
                    
                    //get the origin of the end of the timer and its angles
                    entity_get_vector(ent, EV_VEC_origin, vEnd);
                    entity_get_vector(ent, EV_VEC_angles, vAngles);
                    
                    //save the end timer information to file
                    formatex(szData, 128, "%c %f %f %f %f %f %f^n", gTimerSaveId, vEnd[0], vEnd[1], vEnd[2], vAngles[0], vAngles[1], vAngles[2]);
                    fputs(file, szData);
                    
                    //2 timer entities count as 1 timer
                    ++timerCount;
                }
            }
        }
        
        //get players name
        new szName[32];
        get_user_name(id, szName, 32);
        
        //notify all admins that the player saved blocks to file
        for (new i = 1; i <= 32; ++i)
        {
            //make sure player is connected
            if (is_user_connected(i))
            {
                if (get_user_flags(i) & BM_ADMIN_LEVEL)
                {
                    client_print(i, print_chat, "%s'%s' saved %d block%s, %d teleporter%s and %d timer%s! Total entites in map: %d", gszPrefix, szName, blockCount, (blockCount == 1 ? "" : "s"), teleCount, (teleCount == 1 ? "" : "s"), timerCount, (timerCount == 1 ? "" : "s"), entity_count());
                }
            }
        }
        
        //close file
        fclose(file);
    }
}
Is the part where it saves to file,
Any chance someone can teach me how can I turn it into a command like:
bm_save, to use with hlds console?
nadavafuta is offline
38914774
Junior Member
Join Date: Nov 2008
Old 04-15-2009 , 13:57   Re: blockmaker_v4.01 [BM]
Reply With Quote #1086

"i need help put the names of the admins setting up blocks saved then the name of the load block was Example:
Block Type: Bunny Hop - Creator: server name"

sorry my english
38914774 is offline
Old 04-18-2009, 15:30
38914774
This message has been deleted by 38914774.
38914774
Junior Member
Join Date: Nov 2008
Old 04-18-2009 , 15:50   Re: blockmaker_v4.01 [BM]
Reply With Quote #1087

I NEED HELP!!!! I added my blockmaker
the name of the person who creates the blocks Example:
Block Type: Bunny Hop
Creator: Bruno
Unless the blocks after the long-term returns as the load block example:
Block Type: Bunny Hop
Creator: Server Name
how I fix this problem?
Please help me
38914774 is offline
InsaneNobody
New Member
Join Date: Apr 2009
Old 04-18-2009 , 19:12   Re: blockmaker_v4.01 [BM]
Reply With Quote #1088

well i have a problem with this i cant strafe it doesn't let me, wtf.... when i try to strafe i just keep going foward. also when i am making blocks it says block count to high and it gets an error and the server shuts down or something like that... Can SOMEONE help me asap please!
InsaneNobody is offline
Old 04-20-2009, 19:37
38914774
This message has been deleted by 38914774.
Hibiki_XD
Member
Join Date: Jan 2008
Old 04-24-2009 , 21:45   Re: blockmaker_v4.01 [BM]
Reply With Quote #1089

well guys if u need the "Creator: %user_name%" is easy to make it ;) just add the entity... and... ^^ is easy to make it... GL Guys ~

if need help my steam id is
hibikisoko

+karma guys ~ if need some pic ok ^^
Attached Thumbnails
Click image for larger version

Name:	lool.jpg
Views:	1131
Size:	97.9 KB
ID:	41199  
__________________
This is me Server Hide-n-Seek
[OFFLINE]

Last edited by Hibiki_XD; 04-24-2009 at 21:50.
Hibiki_XD is offline
Old 04-26-2009, 15:45
38914774
This message has been deleted by Exolent[jNr]. Reason: You are getting too off topic. Take it to PM.
niFe
Senior Member
Join Date: Apr 2008
Location: Planet Green
Old 04-26-2009 , 23:33   Re: blockmaker_v4.01 [BM]
Reply With Quote #1090

Very nice plugin. <3
__________________
niFe is offline
Reply


Thread Tools
Display Modes

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:08.


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