View Single Post
  #23  
Old 12-30-2007, 06:12 PM
Knightmare1 Knightmare1 is offline
Billy Allan
Knightmare1's Avatar
Join Date: Apr 2007
Posts: 804
Knightmare1 can only hope to improve
PHP Code:
function onCreated()
{

  
setImg( this.img );
  
setShape( 1, 16*2, 16*2 );
  
temp.spawnpoints={{ 1,5 },{ 8,2 },{ 9,1 },{ 12,62 },{ 12,6 },{ 15,73 },{ 51,52 }}; 
  
temp.random=int(random(0,temp.spawnpoints.size()+1);

}

function 
onActionGrabbed()
{

  
findPlayer( params[ 0] ).addWeapon( this.weapon );
  
hide;
  
sleep(540);
  
setlevel2("final_gmap.gmap",temp.spawnpoints[temp.random][0],temp.spawnpoints[temp.random][1]);
  
show;
} 
would this work?
__________________
I am the devil, I am here to do to devils work.
Reply With Quote