Thread: Weapon
View Single Post
  #9  
Old 05-09-2011, 10:08 PM
mrnothersan mrnothersan is offline
Owner of MrNothersan
Join Date: Mar 2011
Location: On the Computer
Posts: 97
mrnothersan is an unknown quantity at this point
Send a message via AIM to mrnothersan Send a message via MSN to mrnothersan
Quote:
Originally Posted by fowlplay4 View Post
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);
  }

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...
__________________

Regards
MrNothersan - Playerworld owner


Staff Hirings Thread for MrNothersan: http://forums.graalonline.com/forums....php?p=1639180

Reply With Quote