04.09.2013, 16:30
Pretty much what you did.
pawn Код:
// Global variable
new
Race_Pickups[ MAX_RACES ]
;
public OnGameModeInit( )
{
for( new i = 0; i < MAX_RACES; i++ ) Race_Pickups[ i ] = CreatePickup( 1317, 1, RInfo[ i ][ CPX ][ 0 ], RInfo[ i ][ CPY ][ 0 ], RInfo[ i ][ CPZ ][ 0 ], -1 );
return 1;
}
public OnGameModeExit( )
{
for( new i = 0; i < MAX_RACES; i++ ) DestroyPickup( Race_Pickups[ i ] );
return 1;
}