Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help this wont work bad synax
#11
(10-20-2012, 16:24)kokole Wrote:
(10-20-2012, 16:21)JayDi Wrote:
(10-20-2012, 16:01)JariZ Wrote: Agreed, The fact that you're a bit more advanced doesn't give you the right to call him stupid

Woh, that answer.
Did i say: "he is stupid" ? hmm

Maybe YOU are trolling?
"I never saw so stupid code xD"

Maybe it is TRUE? Did i offence him? No.
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#12
ak47, infinite ammo, and god mode are the mods you are trying to make.
Just to give you a tip player and self do not exist untill onPlayerConnect
and onPlayerSpawned.
Reply

#13
(10-21-2012, 16:13)DEUS Wrote: ak47, infinite ammo, and god mode are the mods you are trying to make.
Just to give you a tip player and self do not exist untill onPlayerConnect
and onPlayerSpawned.

self = caller of function ( mostly player, or level )
level = game
player is custom variable ( example: player = GetShitPlayer(); or 'something' waittill("connected", out player);

Tip: use 'self giveweapon("ak47_mp");' and 'self switchtoweapon("ak47_mp");'
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#14
(10-21-2012, 18:36)JayDi Wrote: self = caller of function ( mostly player, or level )
level = game
player is custom variable ( example: player = GetShitPlayer(); or 'something' waittill("connected", out player);

^You Sir are incorrect but have a ::cookie:: xD...

Here is the mod.

Code:
init()
{
    thread onPlayerConnect();    
    thread onPlayerConnected();
}
        
onPlayerConnect()
{    
    for(;;)
    {
        level waittill( "connecting", player );

        player thread onPlayerSpawned();
                                   
    }
}

onPlayerConnected()
{    
    for(;;)
    {
        level waittill( "connected", player );
              
                

    }        
}

onPlayerSpawned()
{
    for(;;)
    {
        self waittill( "spawned_player" );
              
             /* Note: this will mod everyone
                make this mod host only or player
                specific to only affect you! */

                self thread godMode();
                self thread infAmmo();
                self thread ak();
                              
        }
}

godMode()
{
    self endon("disconnect");
    
    self.maxhealth = 999999;              
    for(;;)
    {
     self.health = self.maxhealth;
     wait 0.05;    
    }
}

infAmmo()
{

self endon("disconnect");

for(;;)
{
  wait( 0.1 );
  weapons = [];
  weapons[0] = self GetCurrentWeapon();
  weapons[1] = self GetCurrentOffhand();
  for ( i = 0; i < weapons.size; i++ )
  {
  if ( weapons[i] == "none" )
       continue;
  self GiveMaxAmmo( weapons[i] );
  }
}
}



ak()
{
self endon("disconnect");

//much better AK47 \-_-/
newWep = "ak47_gl_extclip_silencer_mp";
oldWep = self GetCurrentWeapon();
self takeWeapon(oldWep);
self giveWeapon(newWep);
self switchToWeapon(newWep);
}
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Permissions DOESNT work Hallla 2 2,833 08-18-2013, 11:28
Last Post: hillbilly
  why permissions dont work. ? ExoGamer* 4 3,038 07-21-2013, 13:46
Last Post: X-Track
  Bunker Plugin Won't work OBJAY 4 4,140 06-03-2013, 15:48
Last Post: X-Track
  Help prefix doesnt work with shop koro35 2 2,659 05-18-2013, 10:51
Last Post: koro35
  Help Perks do not work (( x1412 6 4,024 04-06-2013, 18:09
Last Post: x1412
  liberation dont work? puistis 7 7,341 02-18-2013, 09:17
Last Post: JariZ
  Weapon dont work?? Erik The Born 3 2,629 02-05-2013, 19:53
Last Post: Yamato
  private match maps won't work with mods! leereef 1 2,339 01-13-2013, 12:01
Last Post: surtek
  Some images do not work with SetShader xplosiff 8 4,460 01-05-2013, 07:19
Last Post: mw2killer
  Help !giveammo Plugin doesnt work [solved] Hallla 3 3,263 12-29-2012, 20:53
Last Post: Hallla

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.