Author Topic: Post AOTV3 maps, textures, scripts  (Read 3746 times)

did you find a way to silence someone in jail yet?

what's wrong with dedicated.bat?

I didn't know there was one.

did you find a way to silence someone in jail yet?

Can't you block the command to server stuff coming from them? Well the specific methonds you don't want at least.

rudyman

  • Guest
did you find a way to silence someone in jail yet?

I'm working on it. This is what I have so far: (it goes in base > client > scripts > ChatHud.cs(.dso))

Code: [Select]
   if(messagehud_edit.getValue() $= $cusswords)
   {
   $demcount += 15;
   // (declare demcount as 0 in initialization)
      if($demcount < 75)
      {
         if(getWordCount(%message))
         {
            ChatHud.addLine(%message);
         }
      messageClient($___, '', '\c5You have commited a crime. (\c3Cursing\c5).');
      messageClient($___, '', '\c5You have \c3%1\c5 demerits.', $demcount);
      messageAll("", '\c3%1\c5 has \c3%2\c5 demerits!', $____, $demcount);
      }
      else
      {
         if(getWordCount(%message))
         {
            ChatHud.addLine(%message);
         }
      messageClient($___, '', '\c5You have commited a crime. (\c3Cursing\c5.');
      messageClient($___, '', '\c5You have \c3%1\c5 demerits. You are a criminal.', $demcount);
      messageAll("", '\c3%1\c5 has \c3%2 demerits! Arrest him!', $___, $demcount);
      }
   }
   else
   {
      if(getWordCount(%message))
      {
         ChatHud.addLine(%message);
      }
   }
}


The only thing i haven't gotten is the sender's id (so you'd just replace all of the $___ with a variable representing the sender of the message)



-------------
^sorry, i just realized that was for making a demerit thing.
v   this is what i have for disabling global chat in jail:
-------------

This goes in the file where you made your jail script, in the area where you'd send the player to the jail coordinates:
Code: [Select]
$playerisinjail = 1;

and when you're unjailing them:
Code: [Select]
$playerisinjail = 0;

and this goes in the chatHud.cs, in the command for when you send a message:
Code: [Select]
if($playerisinjail $= 0)
{
   [command to send the message]
}
else
{
messageClient($victim, '', 'you cant use global chat in jail');
}



-----
i haven't tested any of this.
« Last Edit: July 24, 2006, 01:51:29 PM by rudyman »

Yay I know how to do stuff I just don't know what all the % $ are in C++

O_O you have gotten alot further then me, all i have been working on are spells and weapons :( *edit* i already have a police system where im the marshall that decides who is wanted but that is even better :D *goes on v3 and makes himself wanted and hits himself with baton*
« Last Edit: July 24, 2006, 01:55:04 PM by fireball »

rudyman

  • Guest
i had lots of spare time on my trip to the beach

edit: have you added a baton yet? (i haven't started. first i need to get the demerit system working.)
edit: you should get on msn.
« Last Edit: July 24, 2006, 01:55:53 PM by rudyman »


yea, i have a baton. i have to press a button to make the player wanted and if the
baton hits someone thats wanted, it sends them to the jail. *annying thing is, the weapon selector gui keeps it highlighted red forever. gets annying after a while
« Last Edit: July 24, 2006, 02:12:02 PM by fireball »

k1l4l4

  • Guest
Fireball and anti-cop, I am trying to add you to my MSN thing buut, it is like you dont wanna accept the thing. I dont really know how MSN works too well but I know that it says something to the person I am trying to add.(my e-mail is rakhi@wosaddict.com and fireball I really need to talk to you)