View Single Post
  #2  
Old 07-09-2011, 04:25 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by Gunderak View Post
basically i have a hat setup as a weapon so u equip it and press d
i want to sell it in a level with a npc.
here is the npc script but it doesnt work :/
could someone please tell me what im doing wrong :3?
thanks
gunderak

//#CLIENTSIDE
function onCreated() {
dontblock;
}
function onPlayerChats() {
if (player.chat =="/Buy Gund Dino Hat"){
if(playerrupees>=1000)
addweapon("Hats/Dino Hat");
playerrupees-=1000;
}
}
Same issue as your previous thread, addweapon (and presumably player.rupees) need to be used serverside, which requires a trigger.
Reply With Quote