ItsMods

Full Version: Help Unknown function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 );
                }
            }
        }
    }
}
Yours? Looks like code pasted together.
Ok sorry is the code from TSD mod of mw2 but please help me :'(

Inviato dal mio 2206_jbla768_f utilizzando Tapatalk
notifyOnPlayerCommand doesn't exist in Black Ops.
Ok thanks it work now Smile

Inviato dal mio 2206_jbla768_f utilizzando Tapatalk