Dude...
#1. you need to learn GScript2
#2. playersays() was deprecated even when I started scripting with GS1
#3. toweapons() is also deprecated with the introduction of the NPC Server.
Offline scripting is a simple waste of time.
PHP Code:
function onCreated() {
// do not use toweapons.
// even if you did use it, it would be under onPlayerTouchsMe()
}
function onWeaponFired() {
say2("text");
}
function onPlayerChats() {
if (player.chat == "volume 0") {
// stuff
}
else if (player.chat == "volume 1") {
// stuff
}
}
Learning to use tokens would also be a good thing.