Ok, so I started making this bank script and I got a little confused.
Basically when you walk into a bank, you say '/create account' and when you say that, it adds a weapon called '-Bank/Account' to your attributes. Im trying to set it to where if you already have a bank account and you say '/create account' and you have the weapon '-Bank/Account' in your attributes already, it will say2 You already have a bank account. Here is what I have so far.
PHP Code:
//#CLIENTSIDE
function onPlayerchats()
{
if (player.chat="/open account")
{
if (hasweapon(-Bank/Account))
say2 You already have a bank account!;
}
else if (player.chat="/open account")
{
say2 You have created a bank account!;
player.addWeapon("-Bank/Account");
}
}
If you know the problem, please reply and tell me so I can finish this system.
Thanks alot
-Jamerson =]