View Single Post
  #3  
Old 11-02-2009, 07:23 PM
cyan3 cyan3 is offline
Registered User
cyan3's Avatar
Join Date: Nov 2005
Location: England
Posts: 2,919
cyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant future
You could add weapons using a variable to store the values of the weapon names and add them to the player on login. Using a variable is much more efficient if you want to add multiple weapons on login. Here is quick example.

PHP Code:
function onActionPlayerOnline() {

  
temp.weps =
  {
    
"-Weapon1",
    
"-Weapon2",
    
"-Weapon3",
    
"-Weapon4",
  };
  
  for(
temp.weptemp.weps)
  {
    
player.addweapon(temp.wep);
  }  

Reply With Quote