View Single Post
  #1  
Old 05-21-2008, 07:37 AM
wild8900 wild8900 is offline
Mr. Brightside
wild8900's Avatar
Join Date: Dec 2005
Posts: 418
wild8900 is an unknown quantity at this point
Send a message via MSN to wild8900
Ship/Attachtoobj Problem...

For some reason this script attaches the player but it warps them around and weirds up the positions on other peoples clients... what am I doing wrong?
PHP Code:
if(playertouchsme&&!playerattached){
  
playerx=x+7.5;
  
playery=y+9;
  
attachplayertoobj 0,id;
  
timeout=0.05;
}

//#CLIENTSIDE
function onCreated(){
  
drawunderplayer();
  
setshape2(1838, {
    
00,00,00,22,22,22,22,22,22,22,22,22,22,22,22,00,00,00,
    
00,00,00,22,22,00,00,00,00,00,00,00,00,22,22,00,00,00,
    
00,00,00,22,22,00,00,00,00,00,00,00,00,22,22,00,00,00,
    
00,00,22,22,22,00,00,00,00,00,00,00,00,22,22,22,00,00,
    
00,22,22,22,22,00,00,22,22,22,22,00,00,22,22,22,22,00,
    
22,22,00,22,22,22,22,22,22,22,22,00,00,22,22,00,22,22,
    
22,22,00,22,22,22,22,22,22,22,22,00,00,22,22,00,22,22,
    
22,22,00,22,22,22,22,22,22,22,22,00,00,22,22,00,22,22,
    
22,22,00,22,22,22,22,22,22,22,22,00,00,22,22,00,22,22,
    
22,22,00,22,22,22,22,22,22,22,22,00,00,22,22,00,22,22,
    
22,22,00,00,00,00,00,00,00,00,00,00,00,00,00,00,22,22,
    
22,22,00,00,00,00,00,00,00,00,00,00,00,00,00,00,22,22,
    
22,22,00,00,00,00,00,22,22,22,22,00,00,00,00,00,22,22,
    
00,00,00,00,00,00,00,22,22,22,22,00,00,00,00,00,00,00,
    
00,00,00,00,00,00,00,22,22,22,22,00,00,00,00,00,00,00,
    
22,22,00,00,00,00,00,22,22,22,22,00,00,00,00,00,22,22,
    
22,22,00,00,00,00,00,00,00,00,00,00,00,00,00,00,22,22,
    
22,22,00,00,00,00,00,00,00,00,00,00,00,00,00,00,22,22,
    
22,22,00,00,00,00,00,00,00,00,00,00,00,00,00,00,22,22,
    
22,22,00,00,00,00,00,00,00,00,00,00,00,00,00,00,22,22,
    
22,22,00,00,00,00,00,00,00,00,00,00,00,00,00,00,22,22,
    
22,22,00,00,00,00,00,00,00,00,00,00,00,00,00,00,22,22,
    
22,22,00,00,00,00,00,22,22,22,22,00,00,00,00,00,22,22,
    
22,22,00,00,00,00,00,22,22,22,22,00,00,00,00,00,22,22,
    
22,22,00,00,00,00,00,22,22,22,22,00,00,00,00,00,22,22,
    
22,22,00,00,00,00,00,22,22,22,22,00,00,00,00,00,22,22,
    
22,22,00,00,00,00,00,22,00,00,22,00,00,00,00,00,22,22,
    
22,22,22,00,00,00,00,22,00,00,22,00,00,00,00,22,22,22,
    
22,22,22,22,00,00,00,22,00,00,22,00,00,00,22,22,22,22,
    
22,22,22,22,22,00,00,00,00,00,00,00,00,22,22,22,22,22,
    
00,22,22,22,22,22,00,00,00,00,00,00,22,22,22,22,22,00,
    
00,00,22,22,22,22,22,00,00,00,00,22,00,22,22,22,00,00,
    
00,00,00,22,22,22,22,22,00,00,22,00,00,22,22,00,00,00,
    
00,00,00,00,22,22,22,22,22,22,22,22,22,22,00,00,00,00,
    
00,00,00,00,00,22,22,22,22,22,22,22,22,00,00,00,00,00,
    
00,00,00,00,00,00,22,22,22,22,22,22,00,00,00,00,00,00,
    
00,00,00,00,00,00,00,22,22,22,22,00,00,00,00,00,00,00,
    
00,00,00,00,00,00,00,00,22,22,00,00,00,00,00,00,00,00,
      });
}
function 
onTimeout(){
  if (
keydown(6)){
    
detachplayer;
    
player.x=x-4;
    
player.y=y-4;
    
setplayerprop #c,You left the boat.;
  
}
  
setTimer(0.05);

Reply With Quote