Ergebnis 1 bis 3 von 3

Thema: Hilfe für Script

  1. #1

    Standard Hilfe für Script

    Hey,

    Ich fange grade mit Lua Scripten etwas an und habe aus ein paar sachen mir was zusammengestellt:

    Code:
    function DisableGod( )
    		ply:GodDisable( )
    end
    function EnableGod( ply )
    	ply:GodEnable()
    end
    function PlayerSpawn( ply )
     ply:GodEnable()
    end
     
    concommand.Add("!godon", EnableGod)
    concommand.Add( "!godoff", DisableGod )	 
    hook.Add( "Godmode", "Wenn der Player Spawnt bekommt er Godmode", PlayerSpawn )
    Ich kriege ein nil value fehler wen ich dieses Script benutze, weis jemand woran es liegt?

  2. #2

    Standard AW: Hilfe für Script

    du musst ply noch festlegen am besten so
    Code:
     local ply = LocalPlayer()
    
    functionDisableGod( )
    		ply:GodDisable( )
    end
    function EnableGod( ply )
    	ply:GodEnable()
    end
    function PlayerSpawn( ply )
     ply:GodEnable()
    end
     
    concommand.Add("!godon", EnableGod)
    concommand.Add( "!godoff", DisableGod )	 
    hook.Add( "Godmode", "Wenn der Player Spawnt bekommt er Godmode", PlayerSpawn )
    :

  3. #3

    Standard AW: Hilfe für Script

    /Close
    Geändert von InfinityNeo (13.08.2011 um 23:16 Uhr)

Ähnliche Themen

  1. Hilfe! bei meinem Script
    Von Flaver im Forum Lua
    Antworten: 6
    Letzter Beitrag: 22.02.2009, 18:25
  2. Zs Server (Suche Script) Pls hilfe
    Von Tom Tom im Forum Server
    Antworten: 3
    Letzter Beitrag: 16.10.2008, 15:31
  3. PHP Upload script
    Von chris14465 im Forum Software
    Antworten: 0
    Letzter Beitrag: 12.05.2007, 09:07
  4. Suche lua script
    Von Wakaru im Forum Lua
    Antworten: 0
    Letzter Beitrag: 17.08.2006, 23:06

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •