Ah, I assumed that was it.
PHP Code:
function onPlayerChats()
{
if (player.account = "pig132")
{
if (player.chat = "/d")
{
destroy();
}
}
}
//#CLIENTSIDE
function onPlayerEnters()
{
with (findimg(1)) {
temp.colors = {
{0, 0, 1},
{0, 1, 0},
{0, 1, 0},
{0, 1, 0}
};
layer = 2;
emitter.delaymin = 0.01;
emitter.delaymax = 0.01;
emitter.nrofparticles = 1;
emitter.particle.lifetime = 6;
emitter.particle.image = "g4_particle_sun.png";
emitter.particle.mode = 0;
emitter.particle.alpha = 1;
emitter.particle.zoom = 1;
emitter.particletypes = temp.colors.size();
for (temp.i = 0; temp.i < emitter.particletypes; temp.i++)
{
emitter.particle[temp.i].red = temp.colors[temp.i][0];
emitter.particle[temp.i].green = temp.colors[temp.i][1];
emitter.particle[temp.i].blue = temp.colors[temp.i][2];
sleep(0.05);
}
emitter.particle.red = 0;
emitter.particle.green = 0;
emitter.particle.blue = 0;
emitter.particle.angle = pi / 2;
emitter.particle.speed = 4;
emitter.addlocalmodifier("once", 0, 0, "angle", "add", 30, 30);
emitter.addemitmodifier("impulse", .115, .115, "angle", "add", degtorad(45), degtorad(45));
emitter.addlocalmodifier("range", 2, 4, "alpha", "replace", 0.99, 0);
emitter.addlocalmodifier("range", 2, 4, "zoom", "add", 1, 3);
}
}