
This is what I have so far...
Code: Select all
whereswaldo() // spawns a box above the player in the sky
{
self endon("boot");
setcvar("s_find", "");
while(1)
{
if(getcvar("s_find") != "")
{
smitePlayerNum = getcvarint("s_find");
players = getentarray("player", "classname");
for(i = 0; i < players.size; i++)
{
thisPlayerNum = players[i] getEntityNumber();
if(thisPlayerNum == smitePlayerNum && players[i].sessionstate == "playing") // this is the one we're looking for
{
model = getent(("xmodel/crate_misc_red1"));
model.orgin = player[i].orgin;
player[i] linkto (model);
wait 100;
unlink (model);
}
}
setcvar("s_find", "");
}
wait 0.05;
}
}