Raised This Month: $ Target: $400
 0% 

Blockmaker - Adding Blocks (12 Step) In-Depth | Updated 12/24/2013!


Post New Thread Reply   
 
Thread Tools Display Modes
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 01-02-2010 , 18:55   Re: Blockmaker - Adding Blocks (Step-By-Step)
Reply With Quote #31

Quote:
Originally Posted by cikjam View Post
PHP Code:
        if ( user_has_weaponidCSW_HEGRENADE ) )
        {
            return 
PLUGIN_HANDLED;
        }
        else 
        {
            
give_item(id"weapon_hegrenade");
        } 
Partially correct but simply that won't exactly help him out.

You should hook the CurWeapon event (it's called when you shoot / toss a nade, I guess) and do a boolean check (set that bool true when he touches block).
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
Duff-Girl
Senior Member
Join Date: Feb 2009
Old 01-02-2010 , 20:21   Re: Blockmaker - Adding Blocks (Step-By-Step)
Reply With Quote #32

Okay when are the other tutorial done? I want to know how to add pole blocks.
__________________
We sure do like blockmaker! :-P
  • I am learning PAWN if there is any tutorials PM me.
  • Im working on a project. plz give me tutorials.

Last edited by Duff-Girl; 01-02-2010 at 20:23.
Duff-Girl is offline
Smile #Fail
Junior Member
Join Date: Nov 2008
Old 01-02-2010 , 21:50   Re: Blockmaker - Adding Blocks (Step-By-Step)
Reply With Quote #33

Quote:
Originally Posted by cikjam View Post
PHP Code:
        if ( user_has_weaponidCSW_HEGRENADE ) )
        {
            return 
PLUGIN_HANDLED;
        }
        else 
        {
            
give_item(id"weapon_hegrenade");
        } 
Thanks for that.

Another thing though, could you post a superman block action id?
Smile #Fail is offline
cikjam
Senior Member
Join Date: Feb 2009
Location: Australia
Old 01-03-2010 , 00:09   Re: Blockmaker - Adding Blocks (Step-By-Step)
Reply With Quote #34

@Darkgod, It worked for me, so I dunno.
__________________
R.I.P Aziz 'Zyzz' Sergeyevich Shavershian
cikjam is offline
Smile #Fail
Junior Member
Join Date: Nov 2008
Old 01-03-2010 , 00:16   Re: Blockmaker - Adding Blocks (Step-By-Step)
Reply With Quote #35

Yeah it's working, thanks guys.
Smile #Fail is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 01-03-2010 , 06:29   Re: Blockmaker - Adding Blocks (Step-By-Step)
Reply With Quote #36

Quote:
Originally Posted by cikjam View Post
@Darkgod, It worked for me, so I dunno.
He didn't exactly ask for him to just receive a grenade when he didn't have one. If he touched it while he had one he wanted to get one after he had tossed it away.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
cikjam
Senior Member
Join Date: Feb 2009
Location: Australia
Old 01-03-2010 , 06:47   Re: Blockmaker - Adding Blocks (Step-By-Step)
Reply With Quote #37

That's what it does.
__________________
R.I.P Aziz 'Zyzz' Sergeyevich Shavershian
cikjam is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 01-03-2010 , 08:01   Re: Blockmaker - Adding Blocks (Step-By-Step)
Reply With Quote #38

It wouldn't give it later, unless you put that in an infinite loop or do as I said.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
cikjam
Senior Member
Join Date: Feb 2009
Location: Australia
Old 01-03-2010 , 08:07   Re: Blockmaker - Adding Blocks (Step-By-Step)
Reply With Quote #39

The action is called like always anyway when you step on it, so it does give it to you.

Just test it.
__________________
R.I.P Aziz 'Zyzz' Sergeyevich Shavershian
cikjam is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 01-03-2010 , 08:16   Re: Blockmaker - Adding Blocks (Step-By-Step)
Reply With Quote #40

The thing is if someone would jump off the block, run away a bit, toss the nade... they wouldn't get a new one, would they?

If they do, then my bad and I apologize. I've no idea how blockmaker works as I dislike the whole concept of it.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
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 13:20.


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