View Single Post
  #5  
Old 06-25-2011, 08:22 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
You could use a custom function for it:
PHP Code:
function hasWeapon(wName) {
  for (
temp.wplayer.weapons)
    if (
w.name == wName)
      return 
true;

  return 
false;

It'd probably be better to do the checks on the serverside though.
Reply With Quote