I wanted give all living players on the server a playerspeed of 400%. But the Speed does not change. It´s still normal. Here is the code:
[lua] function RandomatSuperBlitz()
RandomatBroadcast("Randomat: ", Color(255,255,255), “Let´s change your speed!”)
for k,v in pairs(player.GetAll()) do
v.RandomatSuperSpeed = true
end
hook.Remove(“TTTPlayerSpeedModifier”, “RandomatTTTSuperSpeed” )
hook.Add(“TTTPlayerSpeedModifier”, “RandomatTTTSpeed” , function(ply)
if ply.RandomatSpeed and !ply.RandomatSuperSpeed then
return 4
end
end )
end[/lua]
Where am I mistaken ?