Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const MAX_SPHERES = 100;
- const TIME_TO_RESPAWN = 60; //in seconds.
- a_sphere <- array( MAX_SPHERES, null );
- function onSphereEntered( player, sphere )
- {
- a_sphere[ sphere.ID ] = sphere;
- NewTimer( "ReSpawn" , TIME_TO_RESPAWN*1000 , 1 , sphere.ID );
- sphere.Remove();
- }
- function ReSpawn( sID )
- {
- local s = a_sphere[ sID ];
- if( !s ) return;
- CreateSphere( null, s.World, s.Pos, s.Color, s.Radius );
- a_sphere[ sID ] = null;
- }
Add Comment
Please, Sign In to add comment