View Single Post
  #3  
Old 07-05-2013, 05:09 PM
i8bit i8bit is offline
Registered User
Join Date: Jul 2013
Posts: 146
i8bit is an unknown quantity at this point
Quote:
Originally Posted by fowlplay4 View Post
Wrong function:

PHP Code:
function onActionPlayerOnline() {
  
setupPlayer();
  
addWeapons();
}

function 
setupPlayer() {
  if (!
clientr.stat.level) {
    
clientr.stat.level 1;
    
// and so on..
  
}
}

function 
addweapons() {
  
temp.weps = {
    
"-System""andSoOn"
  
};
  for (
temp.weptemp.weps) {
    
player.addweapon(temp.wep);
  }


Why couldn't I just do:

PHP Code:
function onActionPlayerOnline() {
if (
clientr.level <= 0)
{
 
clientr.level 1;
 
addweapon("-Control");
 }

wouldn't that do the same thing?
Reply With Quote