Raised This Month: $ Target: $400
 0% 

Is this the right way?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 06-26-2012 , 10:48   Re: Is this the right way?
Reply With Quote #8

Code:
#include < amxmodx > #include < fakemeta > public plugin_init( )   set_task( 2.0, "TaskCheckForDeadPlayers", .flags = "b" ); public TaskCheckForDeadPlayers( ) {   static iPlayers[ 32 ], iNum, i, cModel[ 32 ], iTeam;   get_players( iPlayers, iNum, "b" );   if( iNum )   {     for( i = 0; i < iNum; i++ )     {       if( pev_valid( iPlayers[ i ] ) == 2 /* Supposed to prevent any crashes */ )       {           iTeam = get_pdata_int( iPlayers[ i ], 114 );           pev( iPlayers[ i ], pev_model, cModel, 31 );           if( iTeam > 0 && iTeam < 3 && ( -1 == containi( cModel, "player.mdl" ) ) /* Makes sure he chosed a model */ )             dllfunc( DLLFunc_Spawn, iPlayers[ i ] );       }     }   } }
__________________

Last edited by claudiuhks; 06-26-2012 at 10:52.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
 



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 06:17.


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