Raised This Month: $ Target: $400
 0% 

Efficient Scripting


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Ax3l
Member
Join Date: Nov 2009
Old 08-15-2012 , 11:31   Efficient Scripting
Reply With Quote #1

According to this : http://forums.alliedmods.net/showthread.php?t=88792

This is the right mode to script , right : ?

Code:
new Bot[ 33 ];
new Connected[ 33 ];
new Alive[ 33 ];

public plugin_init( )
{
	register_plugin( " " , " " , " " );
	
	RegisterHam( Ham_Spawn , "player" , "fw_PlayerSpawn" , 1 );
}

public client_putinserver( iPlayer )
{
	if( is_user_bot( iPlayer ) )
	{
		Bot[ iPlayer ] = true;
	}
	
	else if( is_user_connected( iPlayer ) )
	{
		Connected[ iPlayer ] = true;
	}
}

public fw_PlayerSpawn( iPlayer )
{
	if( is_user_alive( iPlayer ) )
	{
		Alive[ iPlayer ] = true;
	}
}
I just want to know ...
__________________
Ax3l is offline
 


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 22:11.


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