Well that's some fail triggering right there, why are you doing things that should be done on the clientside on the serverside?
PHP Code:
function onActionServerSide(trigger)
{
if(trigger == "award")
{
// stuff
}
}
//#CLIENTSIDE
function onWeaponFired()
{
temp.sandtiles = {170,15,8,301,358,391};
if(tiles[player.x,player.y] in temp.sandtiles)
{
setani("ge_shovel",NULL);
temp.random=int(random(0,10));
if(temp.random==5)
{
setani("ge_chestfound",NULL);
triggerserver("gui", name, "award");
}
} else {
setani("shovel2",NULL);
}
}