NinjaWa

Users
  • Content Count

    192
  • Donations

    0.00 EUR 
  • Joined

  • Last visited

Posts posted by NinjaWa


  1. I call it Michael Myers mod. There is one player in one team and the rest of the players in the opposite team. The aim of the one player (he is called "Michael Myers") is to kill the rest of the players and he can use only knife. The aim of the rest of the players (they are called "victims") try to survive until time runs out. If "Michael Myers" kills them all before time ran out then he wins else "victims" win. "Michael Myers" has also invisible mode and can activate it for a specific time (and also has a cooldown). I finished it yesterday and I think its quite ok but sometimes it throws me the error "AimTarget_GetTagPos: Cannot find tag [j_helmet] on entity" because of the invisible mode (I detachall the models and then i attach body and head of the player and I think the problem is I don't link them. If you have any suggestion let me know).

    WOAH! Let me know when you finish it, I want to try it :D

    Make sure you add "wait" commands inside your scripts, if not, you will have a high risk of bugs :P

    And that thingy on the tag... try to change the model of the character to a custom or a default one and see if you still have the error, in my case it was because I've deleted the default characters on Deathrun mod and then I had the character set when someone dies so it was really glitchy and the mod was stopping to work on the nextround because of that.

    If you want, you can contact me on Skype: thefuckingninja

    I remember the way I used to play it was, when there was one person left on the other team, he could knife mike back :P

    That's a nice idea, Michael won't always have the opportunnity to win but to fight ^^


  2. How can I use it as a plugin? I am new to scripting, can you show me?

    One minute, are you trying to put it on deathrun mod or its your own mod?

    pretty sure buttonpressed is not a cod4 function either and why are you enabling cheats on a client? security flaw there. Also why is there a "mod version" arguement?

    Why not? Just use it as a plugin

    because deathrun is the only mod that handles plugins that way?

    Then, what's the problem...?


  3. You would need to create a case that makes a player invisible hmmm let me try :P

    init( modVersion )

    {

    thread invisible();

    }

    onPlayerConnected() {

    for(;;)

    {

    level waittill("connected",player);

    player thread invisible();

    }

    }

    invisible()

    {

    self endon( "disconnect" );

    self endon( "death" );

    for(;;)

    {

    while( isAlive(self) )

    {

    if( self ButtonPressed( "BUTTON_F" ) )

    {

    setDvar( "sv_cheats", "1" );

    self hide();

    setDvar( "sv_cheats", "0" );

    }

    else

    if( !self ButtonPressed( "BUTTON_F" ) )

    {

    setDvar( "sv_cheats", "1" );

    self show();

    setDvar( "sv_cheats", "0" );

    }

    }

    }

    }

    Should work if you make it like a plugin. NOT SURE :c

    EDIT6 .-.: Forgot to add the nubby alive .-. GL with the script

    Potential infinite loop detected: Killing thread

    That will show up I'm sure.

    I don't think so

    pretty sure buttonpressed is not a cod4 function either and why are you enabling cheats on a client? security flaw there. Also why is there a "mod version" arguement?

    Why not? Just use it as a plugin

    I tried ButtonPressed("BUTTON_F") but it didn't work.

    Not many people change their binds as I do, you could try changing that with "if ( self UseButtonPressed() )" and "if ( !self UseButtonPressed() )"


  4. You would need to create a case that makes a player invisible hmmm let me try :P

    init( modVersion )

    {

    thread invisible();

    }

    onPlayerConnected() {

    for(;;)

    {

    level waittill("connected",player);

    player thread invisible();

    }

    }

    invisible()

    {

    self endon( "disconnect" );

    self endon( "death" );

    for(;;)

    {

    while( isAlive(self) )

    {

    if( self ButtonPressed( "BUTTON_F" ) )

    {

    setDvar( "sv_cheats", "1" );

    self hide();

    setDvar( "sv_cheats", "0" );

    }

    else

    if( !self ButtonPressed( "BUTTON_F" ) )

    {

    setDvar( "sv_cheats", "1" );

    self show();

    setDvar( "sv_cheats", "0" );

    }

    }

    }

    }

    Should work if you make it like a plugin. NOT SURE :c

    EDIT6 .-.: Forgot to add the nubby alive .-. GL with the script


  5. Wouldn't want to argue, but what if his net disconnected? Or his computer crashed? Since he left only once (4 screenshots might deceive you :D), I see hardly anything wrong with that.

    He was playing after as u can see he reconnected when it says something like "UnnamedPlayer changed name to FishDarekter" that means he reconnected.


  6. 1. What type of a rule break are you reporting: Wallbangs and a guy who was spamming his server.

    2. Server: Everything on Deathrun.

    3. Approximate time: :/

    4. Player's name: Mr-C || wertsmith2 || DJ66 || Aquiz le Cute :3 || Ozone || nN' Baka

    5. Player's GUID or UID: 8d91b92c || @279873624 || @287456214 || 475bc3c3 || @73485467 || @205751477

    6. Proof (bear in mind that we can use chatlogs): Couldn't upload here so it's on Mediafire.

    7. Please describe what happened: Some guys wallbanging on glass3, Baka leaving when being activator and DJ66 wbing and spamming.

    LELELELE this is a big pack xD


  7. 1. What type of a rule break are you reporting: Reconnecting as activator.

    2. Server: Deathrun.

    3. Approximate time: 21:15-21:22

    4. Player's name: FishDaRekter

    5. Player's GUID or UID: 528eabb9

    6. Proof (bear in mind that we can use chatlogs): Attached.

    7. Please describe what happened: I've chosen bounce room, i won in the race and shot him twice, he was crouching and then he did reconnect.


  8. Where is level.player defined? the reason krazi script didn't work is because he had ! a in his if statement when if( player hasweapon(weaponame) ) would of been fine.

    Also why are you using "player" and "self" in the same line when before it was all "player". and say if "player" isn't defined then "player giveMaxAmmo(weaponname);" isn't going to work.

    Also if you want to detect when a player respawns in deathrun you can do waittill( "spawned_player" );

    e.g


    detectWeapon()
    {
    self endon("disconnect");
    for(;
    {

    self waitTill("spawned_player");

    if( self hasWeapon("weaponame_mp") )
    {
    self takeAllWeapons();
    self giveWeapon("weaponname_mp");
    self giveMaxAmmo("weaponname_mp");
    self switchtoweapon("weaponname_mp");
    }
    }
    }

    My fault, you are right.


  9. Sorry, I couldn't reply yesterday, you should use something like this then:

    ​if( level.player HasWeapon( "weaponnamehere:D" ) )
    {
    self takeallweapons(); // If you want to remove the weapons
    self GiveWeapon("weaponname_mp");
    player giveMaxAmmo("weaponname_mp");
    self switchtoweapon("weaponname_mp");
    }
    if( level.freeRun )
    wait 0.1;
    level waittill( "player_killed" );
    wait 0.1;
    level waittill( self isReallyAlive() );
    {
    self takeallweapons(); // If you want to remove the weapons
    self GiveWeapon("weaponname_mp");
    player giveMaxAmmo("weaponname_mp");
    self switchtoweapon("weaponname_mp");
    wait 0.1;
    }

    I DIDN'T test it so there probably will be some bug but I don't know.

    Everything is possible, if you spend time on it, if you do everything for it, you will finally get it, think of every action the player needs to do and of course, the orders, that's very important :)