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

SpecBug JoinClass


Post New Thread Reply   
 
Thread Tools Display Modes
plazma
Senior Member
Join Date: Oct 2013
Old 08-25-2014 , 07:04   Re: SpecBug JoinClass
Reply With Quote #51

Is fixed ?

PHP Code:
public plugin_init()
{
   
register_plugin(PLUGINVERSION"X");
   
   
// Add your code here...
   
RegisterHam(Ham_Spawn"player""fw_PlayerSpawn"1);
}

public 
fw_PlayerSpawn(id)
{
   new 
CsTeamsiTeam cs_get_user_team(id);
   
   if (
is_user_alive(id) && iTeam == CS_TEAM_SPECTATOR)
   {
      
user_kill(id);
      
cs_set_user_team(idCS_TEAM_CT1);
   }

__________________
Free Palestine ♥
plazma is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 08-25-2014 , 07:14   Re: SpecBug JoinClass
Reply With Quote #52

That will not work.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
plazma
Senior Member
Join Date: Oct 2013
Old 08-25-2014 , 07:56   Re: SpecBug JoinClass
Reply With Quote #53

Is fixed ?

PHP Code:
#if cellbits == 32
const OFFSET_TEAM 114
#else
const OFFSET_TEAM 139;
#endif
const OFFSET_LINUX 5;
enum
{
    
FM_CS_TEAM_UNASSIGNED 0,
    
FM_CS_TEAM_T,
    
FM_CS_TEAM_CT,
    
FM_CS_TEAM_SPECTATOR
};

public 
plugin_init( ) {

    
register_plugin"x""x""x" );

    
RegisterHamHam_Spawn"player""Spawn"true );
}

public 
client_connectid )
    
set_task10.0"Spawn2"id__,"b" );


public 
Spawnid ) {

    new 
team fm_get_user_teamid );
    new 
name[32];
    
get_user_nameidname31 );
    if( 
is_user_aliveid ) && team == FM_CS_TEAM_SPECTATOR ) {
        
user_killid );
        
fm_set_user_teamid2);
        
    }
}

public 
Spawn2id ) {

    new 
team fm_get_user_teamid );
    new 
name[32];
    
get_user_nameidname31 );

    if( 
is_user_aliveid ) && team == FM_CS_TEAM_SPECTATOR ) {
        
user_killid );
        
fm_set_user_teamid2);
    }

__________________
Free Palestine ♥

Last edited by plazma; 08-25-2014 at 07:58.
plazma is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 08-25-2014 , 09:12   Re: SpecBug JoinClass
Reply With Quote #54

it is not related with the spawn..
baneado is offline
Reply


Thread Tools
Display Modes

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 02:39.


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