Stop Healthkit from Reappearing
how do we make the healthkit that we spawn to stop re-appearing after we collect it?
Code:
|
Re: Stop Healthkit from Reappearing
Try to add :
Code:
set_pev( iEnt, pev_spawnflags, pev( iEnt, pev_spawnflags ) | SF_NORESPAWN ); |
Re: Stop Healthkit from Reappearing
set_pev( iEnt, pev_spawnflags, pev( iEnt, pev_spawnflags ) | SF_NORESPAWN );
@arkshine typ0 :) |
Re: Stop Healthkit from Reappearing
Where? :mrgreen:
|
Re: Stop Healthkit from Reappearing
hey thanks..what about getting the id of players that touch or collect the healthkit?
|
Re: Stop Healthkit from Reappearing
For what you need to know the player's id ?
|
Re: Stop Healthkit from Reappearing
i need to block it from being collected by some players..
|
Re: Stop Healthkit from Reappearing
Hook Ham_Touch with "item_healthkit" :
Code:
A player is touching the healthkit ( OtherIndex ). |
| All times are GMT -4. The time now is 17:04. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.