Thread: shoot() problem
View Single Post
  #1  
Old 01-26-2009, 03:53 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
shoot() problem

For some reason, shoot() is not working at all.

Here is the code I have. Any ideas on how to fix it? For the record, setani() works fine.

PHP Code:
//#CLIENTSIDE

public function onMain() { 
  if (
clientr.equipped[3] == "gun") {
    
temp.plx player.1.1 vecx(player.dir) * 1.5;
    
temp.ply player.1.5 vecy(player.dir) * 1.5;
    
temp.projectile_angle getangle(temp.plxtemp.ply);
    
    
freezeplayer(0.2);
    
    
setani("insom_" clientr.equipped[0] @ "-fire""");
    
    
showtext(230temp.plxtemp.ply"""""X");
    
    
setshootparams(clientr.equipped[5]);
    
shoot(temp.plxtemp.plyplayer.ztemp.projectile_angle11"insom_bullet""test");
  }

Reply With Quote