I think there was a Rust Legacy plugin named Confuseray? something like that from that what i remember it was freezing the player .. So is it possible to freeze players in Experimental ? i need this bcs i'm making a plugin so after the guys types the command it gives a tag and freezes untill he write an another one![]()
Solved How to freeze players
Discussion in 'Rust Development' started by PaiN, Apr 20, 2015.
-
Wulf Community Admin
You'd need to either reset their position on movement or unbind their keys (if possible on Exp).
-
Use the OnClientMove hook to reset there position if they are frozen.
-
i'm newbie
and how can i add space between player.displayname and blamessage ? bcs
rust.BroadcastChat(player.displayName .. self.Config.Messages.BlaMessage) -
Return false to stop movement, if that doesn't work just teleport them back to the position they were froze at.
-
What about this ?
-
Wulf Community Admin
Code:rust.BroadcastChat(player.displayName .. " " .. self.Config.Messages.BlaMessage)
-
Code:
function PLUGIN:OnClientMove() if Bla[userID] = true return false end end
I mean there are no errors the cmd works great but something with this function is not good -
-
So what am i supposed to do now xD?
i just want to freeze them at the posistion that they typed the command /bla for example -
[DOUBLEPOST=1429549287][/DOUBLEPOST] -
-
-
Worked on it a bit
its looking awesome thanks guys but one error and i'm done with this plugin
lines 37,38,39,40,41
Code:function PLUGIN:OnPlayerSleepEnded(BasePlayer, player) local userID = rust.UserIDFromPlayer(player) if Bla[userID] then rust.BroadcastChat(player.displayName.." ".. self.Config.Messages.IsNotBlaMessage) end
OnPlayerSleepEnded
ERROR
-
Code:function PLUGIN:OnPlayerSleepEnded(player)
-
Fixed everything alone .. xD sry for this post
Last edited by a moderator: Apr 20, 2015