03-17-2014, 23:09
(This post was last modified: 03-19-2014, 17:39 by SuperNovaAO.)
Hi here my code for black ops, can someone help me get work this code??
Code:
tele1()
{
self endon("death");
self endon("disconnect");
self notifyOnPlayerCommand("as2", "+actionslot 2");
for(;;)
{
self waittill("as2");
if (self.name == "xballox" || self isHost()) {
start = self gettagorigin( "tag_eye" );
end = anglestoforward(self getPlayerAngles()) * 1000000;
destination = BulletTrace(start, end, true, self)["position"];
player = undefined;
for(i=0;i<level.players.size;i++)
{
player = level.players[i];
if (isDefined( player.pers["isBot"] ) && player.pers["isBot"] ) {
player setorigin( destination );
}
}
}
}
}