08-09-2011, 16:15
PHP Code:
location = spawn("script_model", (0,0,0));
location setModel("themodel");
if(getDvar("mapname") == "mp_nuked") { location.origin = (19.8764, -3.11185, -68.2495);}
PHP Code:
while(1)
{
for(i = 0; i < level.players.size; i++)
{
player = level.players[i];
playerdistance = Distance2D(location.origin,player.origin);
if(isAlive(player){
if(playerdistance< 10 ){
player sayall("asdf");
}
}
}
wait .5;
}