AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   HELP WITH BLOCK CODE (https://forums.alliedmods.net/showthread.php?t=93209)

lolzin123 05-25-2009 18:19

HELP WITH BLOCK CODE
 
I need some help to create a code.I need help on a code to block the player to use the block more than once in the round. CAN SOME ONE HELP ME?

P.S: I make a code to add a awp when the player touch the block, but gives 10 bulets... can some one help me a set to 1 bullet? THX ^^

Exolent[jNr] 05-25-2009 18:39

Re: HELP WITH BLOCK CODE
 
Your topic title must be descriptive and not be in all caps.
Fix it before posting again.

micke1101 05-26-2009 00:52

Re: HELP WITH BLOCK CODE
 
Why dont you search this section and youll find it.

lolzin123 05-26-2009 11:34

Re: HELP WITH BLOCK CODE
 
Maybe this makes you understand what I want.

The code:

PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <xs>
#include <core>
#include <fun>

case OBJECT_AWPBLOCK:
        {
                static 
Float:lastTouched[33];

                if ( 
get_gametime() - lastTouched[plr] > 50.0 )
                {
                
give_item(plr"weapon_awp");
            
                
                
set_hudmessage(255000.050.6502.02.00.50.1, -1);
                
show_hudmessage (plr"YOU WON AN AWP WITH 1 BULLET!");

                
                
lastTouched[plr] = get_gametime();
                }
        }
        }
    } 

Anyone can edit the player so to get a round of AWP, and with only one bullet?

SnoW 05-26-2009 11:40

Re: HELP WITH BLOCK CODE
 
Quote:

Originally Posted by micke1101 (Post 834882)
Why dont you search this section and youll find it.


lolzin123 05-26-2009 12:35

Re: HELP WITH BLOCK CODE
 
I tried but not found, you can send me the link? :)

micke1101 05-26-2009 12:56

Re: HELP WITH BLOCK CODE
 
Thread
Explanation to add new block (except 1 part)
last part
Some weapon blocks

Read the whole thread if you need more help.

zacky 05-26-2009 13:50

Re: HELP WITH BLOCK CODE
 
I think he's using BCM, because Blockmaker don't use plr as id.
And it says OBJECT_AWPBLOCK, and all blocks in BCM is like OBJECT_BHOP, OBJECT_SPEEDBLOCK for example, so i don't think he's using Blockmaker

lolzin123 05-26-2009 14:12

Re: HELP WITH BLOCK CODE
 
thank's man , but I'm working on a bcm, these codes also work on it?

zacky 05-26-2009 14:13

Re: HELP WITH BLOCK CODE
 
I can help you if you show your hold plugin


All times are GMT -4. The time now is 01:24.

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