AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   RegisterHam( Ham_OnControls, "func_vehicle", "FuncButtonVehicle" ); (https://forums.alliedmods.net/showthread.php?t=87360)

tuty 03-10-2009 14:12

RegisterHam( Ham_OnControls, "func_vehicle", "FuncButtonVehicle" );
 
hi i have this

PHP Code:

RegisterHamHam_OnControls"func_vehicle""FuncButtonVehicle" ); 

and i need this :arrow:

PHP Code:

public FuncButtonVehicle( ...// what is here ///... )
{
 
// code 



Arkshine 03-10-2009 14:18

Re: RegisterHam( Ham_OnControls, "func_vehicle", "FuncButtonVehicle" );
 
( this, idOn ) As Ham says.

ConnorMcLeod 03-10-2009 14:23

Re: RegisterHam( Ham_OnControls, "func_vehicle", "FuncButtonVehicle" );
 
Quote:

Originally Posted by tuty (Post 777900)
hi i have this

PHP Code:

RegisterHamHam_OnControls"func_vehicle""FuncButtonVehicle"); 

and i need this :arrow:

PHP Code:

public FuncButtonVehicleiVehicleiPlayerId )
{
 
// code 



Would be better to post register the forward (see the 1 at the end of the registering line) unless you want to prevent a player from using a vehicle.

tuty 03-10-2009 14:23

Re: RegisterHam( Ham_OnControls, "func_vehicle", "FuncButtonVehicle" );
 
thanks :up:

anakin_cstrike 03-10-2009 15:07

Re: RegisterHam( Ham_OnControls, "func_vehicle", "FuncButtonVehicle" );
 
Hei, i don't want to start a new topic, so i post here.
If i want to block a damage ( ham_takedamage) i have to make it pre, not post. But i need to know the real damage, "damage" parameter is not the actuall damage that the player's takes...so i have to use pev_dmg_take, but is working in pre not post forward?

ConnorMcLeod 03-11-2009 01:54

Re: RegisterHam( Ham_OnControls, "func_vehicle", "FuncButtonVehicle" );
 
Quote:

Originally Posted by anakin_cstrike (Post 777936)
start a new topic



All times are GMT -4. The time now is 08:58.

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