Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
LUA/ Pomoc w skrypcie
#2
Code:
function OnGamemodeInit()
   Enable_OnPlayerKey(1)
end

local gui = CreateTexture(500,300,8000,7500,"Frame_GMPA.TGA");
local bool = false;

function OnPlayerKey(playerid, key)

    if key == KEY_F9 then
    
        if not bool then
            ShowTexture(playerid, gui);
        else
            HideTexture(playerid, gui);
        end
        
        bool = bool not bool
    end
    
end


Tak chyba działało to LUA

Tak w ogóle, to każdy gracz będzie miał taką samą wartość bool.

Na początek sugerowałbym uświadomić sobie, że to nie ta platforma, i tutaj jest język Squirrel.
[Image: dvdsvpx.gif]
Reply


Messages In This Thread
LUA/ Pomoc w skrypcie - by Fevelar - 21.10.2018, 18:14
RE: LUA/ Pomoc w skrypcie - by Hades - 21.10.2018, 19:23
RE: LUA/ Pomoc w skrypcie - by Patrix - 21.10.2018, 19:26
RE: LUA/ Pomoc w skrypcie - by Hades - 21.10.2018, 19:29
RE: LUA/ Pomoc w skrypcie - by Profesores - 21.10.2018, 19:32
RE: LUA/ Pomoc w skrypcie - by Fevelar - 21.10.2018, 19:53

Possibly Related Threads…
Thread Author Replies Views Last Post
  Nauczyciele squirrela albo lua Liberal 8 7,300 12.04.2018, 23:15
Last Post: Spray
  Pomoc w stworzeniu GM Karpas 33 25,656 29.05.2016, 15:43
Last Post: Quarchodron
  Pomoc w serwerze Gooby 8 6,733 21.04.2016, 23:37
Last Post: Gooby
  Pomoc CursePL 2 2,919 22.01.2016, 19:05
Last Post: CursePL
  Pomoc 424531 0 1,582 01.01.2016, 21:00
Last Post: 424531
  Pomoc z Zpackiem Mord 2 2,681 10.10.2015, 11:58
Last Post: Sative

Forum Jump:


Users browsing this thread: 1 Guest(s)