Raised This Month: $ Target: $400
 0% 

Vehicle block use


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-27-2013 , 06:26   Re: Vehicle block use
Reply With Quote #1

What do you want to do ? you don't explain what is that variable so it sounds a bit like a XY Problem


Anyway, correct code is (and, DO USE HAM RETURNS CONTANTS) :

PHP Code:
#include <amxmodx>
#include <hamsandwich>

new bool:something[33] = true;

public 
plugin_init() {
    
RegisterHam(Ham_Use"func_vehicle""BlockPojazd");
    
RegisterHam(Ham_Use"func_vehiclecontrol""BlockPojazd");
}

public 
BlockPojazd(entidactivatoriTypeFloat:fValue)
{
    if( 
id != activator && something[id] && is_user_alive(id) )
    {
        return 
HAM_SUPERCEDE;
    }
    return 
HAM_IGNORED;

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 10-27-2013 at 06:29.
ConnorMcLeod 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 23:15.


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