- Initiateur de la discussion
BCZ Gaming
Psychopathe
- Messages
- 1 301
- Score réaction
- 129
- Points
- 275
Voila j'utilise ce code pour pas que les gens utilise leurs bind:
sa me donne cette erreur:
Code:
hook.Add( "PlayerBindPress", "BlockGMSpawnBinds", function( ply, bind, bool )
local tbl = string.Explode( " ", bind:lower(), false )
if ( tbl[1] and tbl[1] == "gm_spawn" ) then
LocalPlayer():printMessage( HUD_PRINTTALK, "*Action impossible*" )
return true
end
end)
Code:
[ERROR] lua/autorun/client/blockgmspawn.lua:4: attempt to call method 'printMessage' (a nil value) 1. fn - lua/autorun/client/blockgmspawn.lua:4 2. unknown - addons/ulib/lua/ulib/shared/hook.lua:109