
08-16-2005, 02:51 AM
|
|
dark overlord
|
 |
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
|
|
Quote:
|
Originally Posted by calani
addweapon does not work clientside.
NPC Code:
// npc called "-weaponadder"
if (actionserverside) {
if (strequals(#p(0),addw)) {
with(getplayer(#p(1))) addweapon #p(2);
}
}
//#CLIENTSIDE
if (weaponfired) {
triggeraction 0,0,serverside,-weaponadder,addw,#a,NPC/Thinger;
}
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
|
If people were meant to be able to be able to add any weapon clientside, it would not be a serverside command. Please do not encourage the circumvention of this security measure. |
|
|
|