Raised This Month: $32 Target: $400
 8% 

Showing results 1 to 8 of 8
Search took 0.01 seconds.
Search: Posts Made By: ConnorMcLeod
Forum: Code Snippets/Tutorials 04-08-2011, 00:27
Replies: 20
Views: 11,635
Posted By ConnorMcLeod
Re: How to block PlayerUse ?

1. I don't think there is such a sound.
2. Yes, if you already knows what entities exist on the map.
Forum: Code Snippets/Tutorials 04-07-2011, 13:05
Replies: 20
Views: 11,635
Posted By ConnorMcLeod
Re: How to block PlayerUse ?

If you need to use a button it's the same, but if the only fact to touch makes the door open, then it's different.
Forum: Code Snippets/Tutorials 04-04-2011, 12:24
Replies: 20
Views: 11,635
Posted By ConnorMcLeod
Re: How to block PlayerUse ?

No, i mean this following code blocks any object use, but will not block vehicle use, so for such block it is more efficient than other methods :

public EmitSound(id, iChannel, szSample[],...
Forum: Code Snippets/Tutorials 04-04-2011, 06:30
Replies: 20
Views: 11,635
Posted By ConnorMcLeod
Re: How to block PlayerUse ?

I don't think pev->oldbuttons are used anywhere.
About plugins you are right but pdatas should be checked then instead of oldbuttons, better to make plugins act as the game does.

So, you...
Forum: Code Snippets/Tutorials 04-04-2011, 01:31
Replies: 20
Views: 11,635
Posted By ConnorMcLeod
Re: Ghost after death

But Use is checked at PostThink and in PreThink you would have to set those 3 ones to.

Also, if you don't care about vehicles, you can just do the same code at EmitSound :

public EmitSound(id,...
Forum: Code Snippets/Tutorials 04-04-2011, 01:14
Replies: 20
Views: 11,635
Posted By ConnorMcLeod
Re: Ghost after death

Then yes, can be disabled from client_PostThink forward.

So following code should block any kind of use :
public client_PostThink(id)
{
if( is_user_alive(id) )
{
new iButton
if(...
Forum: Code Snippets/Tutorials 04-03-2011, 13:48
Replies: 20
Views: 11,635
Posted By ConnorMcLeod
Re: Ghost after death

You mean objects such as buttons ?
Forum: Code Snippets/Tutorials 04-03-2011, 12:57
Replies: 20
Views: 11,635
Posted By ConnorMcLeod
Re: Ghost after death

Hook FM_Use could be better since you just want to supercede all kind of use.
Showing results 1 to 8 of 8

 
Forum Jump

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


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