Thread: Weapon
View Single Post
  #12  
Old 05-09-2011, 10:30 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by mrnothersan View Post
Just tried
PHP Code:
function onActionPlayerOnline() {
  
// Array of weapons to add to the player.
  
temp.weps = {
    
"testgui""Tailor"
  
};
  
// Loops through each weapon in the array and adds it to the player.
  
for (temp.weptemp.weps) {
    
player.addweapon(temp.wep);
  }

... Played as a Guest on my server and spawned with no weapons at all...
Where did you put the script? Try adding an echo in that function to see if it's being called.
__________________
Reply With Quote