Thread: Key numbers?
View Single Post
  #14  
Old 08-05-2009, 05:13 PM
Soala Soala is offline
Ideas on Fire
Soala's Avatar
Join Date: Jun 2007
Location: In my head
Posts: 3,208
Soala is a jewel in the roughSoala is a jewel in the rough
Keycode check if anyone needs
PHP Code:
//#CLIENTSIDE
function onPlayerChats()
{
  if(
player.chat == "/keycheckon") {
    
this.on true;
    
setTimer(.05);
  }
  else if(
player.chat == "/keycheckoff") {
    
this.on false;
  }
}
function 
onTimeout()
{
  if(
this.on) {
    if(
player.chat != "/keycheckoff")
    
player.chat "Code:" SPC code SPC "Key:" SPC key;
  }
  
setTimer(.05);

Reply With Quote