Quote:
Originally posted by WHIPENIE4
[screen_name says:]
lets see, i found that file on my pc that i had dloaded from some site, anyway i have another question
NPC Code:
if (playerenters&&!hasweapon(System)) {
addweapon System;
}
if (isweapon) { timeout=.1; }
//#CLIENTSIDE
if (timeout) {
showimg 9,pandabear.png,50,50;
changeimgvis 9,4;
timeout=.1; }
is the //#CLIENTSIDE in the right spot??
i haven't learned much about how to use it
|
No, you don't put the weapons script into the NPC.
You just put if (playerenters) addweapon System; and use NC to add the weapon to the Database.
Quote:
Originally posted by WHIPENIE4
[screen_name says:]
with the "with(getplayer(account))" command, will it still do something even if they are offline
NPC Code:
if (playersays(test)) {
with(getplayer(account)) {
if (playeronline) {
playerrupees+=100;
} else { playerrupees-=100; }
}
why else would Stefan add the flag, playeronline??
|
Nope, with (blah) only works for online players...