Here you go, this will teleport the player with the bomb to bombsite B in Dust2. It will teleport them after the
freeze time is over.
PHP Code:
#include < amxmodx >
#include < fun >
new const bomb_orgin[ ][ ] =
{
{ -1555, 2759, 36 }, // Bombsite coordinates
{ -1623, 2660, 36 },
{ -1540, 2623, 36 }
}
public plugin_init( )
{
register_plugin( "Bomb Teleport", "1.0", "Suhdude" )
register_logevent( "start_round", 2, "1=Round_Start" )
//register_clcmd( "say /get", "job" ) // uncomment this to get coordinates
}
public start_round( )
{
new players[ 32 ], inum, id, i
get_players( players, inum, "ae", "TERRORIST" )
for( i = 0; i < inum; i++ )
{
id = players[ i ]
if( user_has_weapon( id, CSW_C4 ) )
{
set_task( 0.9, "move", id )
}
}
}
public move( id )
{
new p_origin[ 3 ]
p_origin = bomb_orgin[ random( sizeof( bomb_orgin ) ) ]
set_user_origin( id, p_origin )
remove_task( id )
}
/*public job( id )
{
new origin[ 3 ]
get_user_origin( id, origin )
log_amx( "%i | %i | %i", origin[ 0 ], origin[ 1 ], origin[ 2 ] )
}*/
__________________