• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Request] How We Make A Toggle?
#21
(07-26-2011, 12:29)Lost4468 Wrote:
(07-25-2011, 22:03)koil Wrote: its very wrong..

add to init -

This is dumb, in init self is the level, you do know self isn't the player most of the time?


Edit: Here's mine

Code:
toggle3p()
{
    while(isalive(self))
    {
        if(self ActionSlotThreeButtonPressed())
            self setclientdvar("cg_thirdperson",!getdvarint("cg_thirdperson"));
        wait 0.05;
    }
}

Mine works.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Make area detect. flag Teleport lewisbibo 4 4,629 10-12-2013, 18:10
Last Post: EnVi Sweden Rocks
Wink Make Platforme lewisbibo 5 4,518 10-08-2013, 14:35
Last Post: 8q4s8
  Make obj MW3.by lewisbibo lewisbibo 3 3,449 10-05-2013, 20:16
Last Post: Nekochan
  Make obj MW3.by lewisbibo lewisbibo 0 2,170 10-03-2013, 20:19
Last Post: lewisbibo
  Help need help?how to make plugins code hXnarutoXone 12 7,683 09-01-2013, 18:30
Last Post: Bandarigoda123
  Help Make ac130 shoot custom bullets Ra3shed 0 2,552 07-23-2013, 13:02
Last Post: Ra3shed
  how to make a plugin (mod) E-losev 5 3,950 07-12-2013, 15:48
Last Post: OzonE
  [Release] Make Trees Fall Yamato 8 11,859 06-15-2013, 11:45
Last Post: xfxtroll
  How to make superjump mod TDM sniper hipperz 4 3,666 03-28-2013, 15:09
Last Post: hillbilly
  Help Make Waypoint FaiR_PLaY 10 5,787 02-12-2013, 13:09
Last Post: archit

Forum Jump:


Users browsing this thread: 1 Guest(s)