Raised This Month: $ Target: $400
 0% 

Detecting Something


Post New Thread Reply   
 
Thread Tools Display Modes
zombieplague
Veteran Member
Join Date: Apr 2009
Old 01-31-2010 , 09:31   Re: Detecting Something
Reply With Quote #11

Quote:
Originally Posted by ujjl View Post
Maybe you write:
Code:
FM_SpectatorThnk
but its
Code:
FM_SpectatorThink
Can you show me the full code ?

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

public plugin_init( )
{
    
register_forwardFM_SpectatorThnk"Specting" )
}

public 
Spectingid 
{
    if ( 
user_is_aliveid )
    {

    }

Error compile.
zombieplague is offline
ujjl
Senior Member
Join Date: Jul 2009
Location: Hungary
Old 01-31-2010 , 14:41   Re: Detecting Something
Reply With Quote #12

Try this:
Code:
bind mwheelup spectate
or this:
Code:
bind mwheeldown spectate
EDIT:
Your code:
PHP Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init( )
{
    
register_forwardFM_SpectatorThink"Specting" )
}

public 
Spectingid 
{
    if ( 
user_is_aliveid )
    {

    }

__________________
- blupi blupi
ujjl is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-31-2010 , 14:53   Re: Detecting Something
Reply With Quote #13

Quote:
Originally Posted by ConnorMcLeod View Post
spectator connect and spectator think are for HLTVs, aka clients with flag FL_SPECTATOR.
Does my english suck so much that you guys have not understood what i had written ??
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
ujjl
Senior Member
Join Date: Jul 2009
Location: Hungary
Old 01-31-2010 , 15:17   Re: Detecting Something
Reply With Quote #14

Found for spectator (half-life)
PHP Code:
if(pev(id,pev_iuser1) || pev(id,pev_iuser2))
{
    
//id is spectating
}
else
{
    
//id is not spectating

__________________
- blupi blupi
ujjl is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 01-31-2010 , 15:33   Re: Detecting Something
Reply With Quote #15

Quote:
Originally Posted by ConnorMcLeod View Post
Does my english suck so much that you guys have not understood what i had written ??
[asskiss]
Nah it's pretty good, imo.
[/asskiss]
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
zombieplague
Veteran Member
Join Date: Apr 2009
Old 02-03-2010 , 06:21   Re: Detecting Something
Reply With Quote #16

Quote:
Originally Posted by ConnorMcLeod View Post
Does my english suck so much that you guys have not understood what i had written ??
Not your english suck is me i don't know how to do it.

Can show me the full code ?

How to detect player download stuff from your server ?
zombieplague 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 07:21.


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