Thread: Weapon
View Single Post
  #3  
Old 05-09-2011, 07:34 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
A lot of servers use a script like this in Control-NPC.

In Control-NPC:

PHP Code:
function onActionPlayerOnline() {
  
// Array of weapons to add to the player.
  
temp.weps = {
    
"-System""OtherWeapon""Example"
  
};
  
// Loops through each weapon in the array and adds it to the player.
  
for (temp.weptemp.weps) {
    
player.addweapon(temp.wep);
  }

__________________
Quote:
Reply With Quote