![]() |
Adding weapons
How would i add a weapon though npc sever? i have no clue i forget i think is it addweapon weapon name or something like that
|
Quote:
Creating a weapon in NC or adding a weapon to a player? |
adding a weapon to player by using the npc sever message
|
adweapon weaponname;
|
You might want to make a player class, and put this in. (GS2 Required.)
PHP Code:
|
Quote:
|
can i add a weapon to the player though a lvl npc like buying items how would i do that the same way?
|
Quote:
//#CLIENTSIDE if (playertouchsme){addweapon weaponnamehere';} You'll have to get to known the scripting commands better if you want it to go to your attributes when you say something like 'buy 'weaponname'. Also i don't think it's a good idea to use Clientside anyways. If you want an NPC to be added to everyones attributes once they logon put this in Control-NPC: if (actionplayeronline){addweapon 'weaponnamehere';} |
addweapon does not work clientside.
NPC Code: that npc, when fired, adds the weapon NPC/Thinger to the player. a level npc (shop or suchlike) could also use that trigger, granted the player has a weapon on them like that one that accepts the addw trigger |
Quote:
|
Quote:
|
Quote:
A DB? That would confuse the poor person. And besides, the only people that would know how to use the trigger would be staff. Players uploading a playerhouse with a script to add weapons wouldn't know how, plus, any player levels should be inspected and approved before uploading in the first place. Nearly every server has a system npc with an addweapon function on it, so don't even go there. |
Quote:
Quote:
Quote:
Quote:
Quote:
|
Calani got own't!
The person you're talking to, however, most likely lacks the intelligence to understand the difference between 'secure' and 'insecure' triggeractions. And every single server has insecure triggeractions like this, which are actively abused to do things such as reseting people, but the PWA could really care less about their existance. |
Quote:
|
| All times are GMT +2. The time now is 10:00 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.