PHP Code:
function onCreated()
{
this.wep = "Weapons/Total Ownage";
}
function onPlayerTouchsMe()
{
if ( getVar() == NULL )
{
addWeapon( this.wep );
clientr.( @ "chest_" @ this.level.name @ "_" @ this.level.x @ "_" @ this.level.y) = this.wep;
}
}
function getVar()
{
return clientr.( @ "chest_" @ this.level.name @ "_" @ this.level.x @ "_" @ this.level.y);
}
//#CLIENTSIDE
function onCreated()
{
show();
onTimeOut();
}
function onTimeOut()
{
if ( getVar() != NULL )
{
hide();
}
setTimer( 1 );
}
function getVar()
{
return clientr.( @ "chest_" @ this.level.name @ "_" @ this.level.x @ "_" @ this.level.y);
}
[EDIT]I didn't even realize there was a second page to this thread ... Hehe, sorry.[/EDIT]