Thread: script help
View Single Post
  #1  
Old 01-17-2009, 06:59 AM
[email protected] jamerson61894@yahoo.com is offline
Banned
Join Date: Jul 2008
Posts: 83
jamerson61894@yahoo.com is an unknown quantity at this point
script help

Hello, i have a script. it basically makes the npc server reset someones attributes if they havnt been reset.

function onCreated()
{
this.resetver = 1;
}

function onActionPlayerOnline()
{
temp.rplayers.loadvars("resetlog.txt");

if (makevar("temp.rplayers.acct_" @ player.account) < this.resetver)
{
sendtorc(format("/reset %s", player.account));

makevar("temp.rplayers.acct_" @ player.account) = this.resetver;
temp.rplayers.savevars("resetlog.txt", 0);
return false;
}




It isnt working though

someone help me fix it please.

Last edited by [email protected]; 01-17-2009 at 07:11 AM..
Reply With Quote