View Single Post
  #2  
Old 02-09-2010, 05:51 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Both of those commands are clientside. And no, there is no way to freeze the player directly from serverside. I've always found it beneficial to create a system weapon to handle things like this:

PHP Code:
//#CLIENTSIDE
function onActionClientSide(cmdtime) {
  if (
cmd == "freezePlayer") {
    
freezePlayer(time);
  }

For example, if that was named System/Freeze, you would do this serverside:

PHP Code:
player.triggerClient("gui""System/Freeze""freezePlayer"SECONDS); 
If you're familiar with player classes, it's also very convenient to setup something like player.freeze() on both serverside and clientside for uniformity.
__________________
Reply With Quote