Set variable in SWEP script and then check it on server?
0 replies, posted
I'm trying to make it so when I fire a weapon, it sets [code]nextturn = 1[/code] and then on the gamemode it does something like this: [code]function GM:Think()
if nextturn == 1 then
print("Spammy nextturn print")
end
end[/code]
Do I include the weapon script in the gamemode init or do I have to do it via networking?
Sorry, you need to Log In to post a reply to this thread.