Raised This Month: $12 Target: $400
 3% 

Blockmaker help.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
blo0d_p3ople
Junior Member
Join Date: Apr 2011
Old 09-25-2012 , 15:24   Blockmaker help.
Reply With Quote #1

Hello to all , sorry for my bad english but im from Bulgaria.I want help, becouse i have a blockmaker and i want to add "Elevator block".Started to coding it but when you step on the bouncing platform[ Elevator] he stop bouncing... i want to ask how can i fix it when player steps on it to go up-down. Please help me with this problem. I want to say that i use the code from a blockmaker with [Bouncing Death] and remake it to a [Bouncing Platform].

Last edited by blo0d_p3ople; 09-25-2012 at 15:32.
blo0d_p3ople is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 09-25-2012 , 15:58   Re: Blockmaker help.
Reply With Quote #2

Read this: http://forums.alliedmods.net/showthread.php?t=107153
Really if you want something about blockmaker then post this here http://forums.alliedmods.net/forumdisplay.php?f=12
.Dare Devil. is offline
blo0d_p3ople
Junior Member
Join Date: Apr 2011
Old 09-25-2012 , 16:51   Re: Blockmaker help.
Reply With Quote #3

Okey man, i will post it there.
blo0d_p3ople is offline
blo0d_p3ople
Junior Member
Join Date: Apr 2011
Old 09-26-2012 , 16:46   Re: Blockmaker help.
Reply With Quote #4

ActionPlatformBounce(id)
{
if (!get_user_godmode(id))
{
{
message_begin(MSG_ONE, gmsgScreenFade, {0,0,0}, id);
write_short(4096*1); // Duration
write_short(4096*1); // Hold time
write_short(4096); // Fade type
write_byte(0); // Red
write_byte(0); // Green
write_byte(0); // Blue
write_byte(200); // Alpha
message_end();
}
}
}
public bounce_platform1(iEntity)
{
if ( IsBlock(iEntity) )
{
new block_type = entity_get_int(iEntity, EV_INT_body);
if(pev_valid(iEntity) && block_type == BOUNCE_PLATFORM1)
{

static property[5];
GetProperty(iEntity, 1, property);
if(pev(iEntity, pev_flags)&FL_ONGROUND)
{
new Float:velocity[3];
velocity[2] = str_to_float(property);
set_pev(iEntity, pev_velocity, velocity);
}
set_task(0.1, "bounce_platform1", iEntity);
}
}
}



This is the code.What i do wrong... ?
blo0d_p3ople 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 18:16.


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