Author Topic: Gametext Script?  (Read 7039 times)

0 Members and 1 Guest are viewing this topic.

Offline Tamas

  • Made Man
  • ***
  • Posts: 127
    • View Profile
    • http://www.tamasnet.eu/
Gametext Script?
« on: July 23, 2008, 12:03:35 am »
Hello

Does anyone know the gametext script, i mean that script when i type "Hello" than all players will be see this message in the center of the screen with example pink color, like the killingspree" message.

Windlord

  • Guest
Re: Gametext Script?
« Reply #1 on: July 23, 2008, 12:07:39 am »
This will depend on what script you use.
For VRocker's Admin, it is;

Code: [Select]
vcmp.announce -
Displays an on-screen message on a players screen
Params: $1 = ServerID, $2 = PlayerID, $3 = Message

Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Gametext Script?
« Reply #2 on: July 23, 2008, 12:09:43 am »
Hello

Does anyone know the gametext script, i mean that script when i type "Hello" than all players will be see this message in the center of the screen with example pink color, like the killingspree" message.

Colour is code pink is ~a~  green= ~t~ no more  :-\

Offline Tamas

  • Made Man
  • ***
  • Posts: 127
    • View Profile
    • http://www.tamasnet.eu/
Re: Gametext Script?
« Reply #3 on: July 23, 2008, 12:19:35 am »
Iam using Sasan V3 thats why i asked because this script is not containes the "pink message saying" section.

Offline Jack_Bauer

  • Wiseguy
  • **
  • Posts: 58
  • GTA:MP Clan Revolution
    • View Profile
    • Battlefield Vice City
Re: Gametext Script?
« Reply #4 on: July 23, 2008, 01:24:59 am »
well the actual command is in sansan it is vcmp.gametext and vcmp.gametext.all
what do you want? text to all,pm,from ingame,from irc?



Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Gametext Script?
« Reply #5 on: July 23, 2008, 01:29:11 am »
well the actual command is in sansan it is vcmp.gametext and vcmp.gametext.all
what do you want? text to all,pm,from ingame,from irc?

HEY JACK HELP MY IN ANNALL IN IRC  ;) COME MSN

Offline Tamas

  • Made Man
  • ***
  • Posts: 127
    • View Profile
    • http://www.tamasnet.eu/
Re: Gametext Script?
« Reply #6 on: July 23, 2008, 02:32:00 am »
I want to say to all and pm for someone too.
So if its already containes it how can i do it?

Example if i want to send to all "Hello"

Offline Jack_Bauer

  • Wiseguy
  • **
  • Posts: 58
  • GTA:MP Clan Revolution
    • View Profile
    • Battlefield Vice City
Re: Gametext Script?
« Reply #7 on: July 23, 2008, 04:12:17 am »
    elseif ($2 == !announce) $iif($hget(vcmp,loggedin. $+ %id) < 5,vcmp.adminmsg %id You must be Admin Level 5 or higher to attempt this command.,vcmp.gametext.all $3-)

That would be for level 5 admins,you can change that as you like,that way it would be !announce hello



Offline Tamas

  • Made Man
  • ***
  • Posts: 127
    • View Profile
    • http://www.tamasnet.eu/
Re: Gametext Script?
« Reply #8 on: July 23, 2008, 07:39:46 pm »
Thx its work. I rewrited a bit now its look like this:

elseif ($2 == !announce) {
if ($hget(vcmp,loggedin. $+ %id) < 10) { vcmp.adminmsg %id You must be     Admin Level 10 or higher to attempt this command. }
else {
vcmp.gametext.all Ad $3
}
}

And how can i send message from IRC to ingame?
I tryed this but thats didnt work:

elseif (($1 == !announce) || ($1 == !ann)) vcmp.gametext.all < $+ $nick $+ > $2-

Offline Mattz

  • VC:MP Lead Tester
  • Made Man
  • *
  • Posts: 192
  • BK-201
    • View Profile
Re: Gametext Script?
« Reply #9 on: July 23, 2008, 07:47:16 pm »
Try this one

Code: [Select]
elseif (($1 == !announce) || ($1 == !ann)) vcmp.gametext.all $2-


Offline TanaX01

  • Made Man
  • ***
  • Posts: 214
  • BlackList! <3
    • View Profile
Re: Gametext Script?
« Reply #10 on: July 24, 2008, 12:15:52 am »
Try this one

Code: [Select]
elseif (($1 == !announce) || ($1 == !ann)) vcmp.gametext.all $2-

in irc  ???  ::)

Offline Tamas

  • Made Man
  • ***
  • Posts: 127
    • View Profile
    • http://www.tamasnet.eu/
Re: Gametext Script?
« Reply #11 on: July 24, 2008, 04:03:07 pm »
Yep in there it seems its work but...

Quote
elseif (($1 == !say) || ($1 == !chat)) vcmp.adminchat || $+ $nick $+ || $2-

its the say command and if i put another example:

Quote
elseif (($1 == !anothertestsaycommand) || ($1 == !atsc)) vcmp.adminchat || $+ $nick $+ || $2-

its not work only with that one

Offline Force

  • LU Developer
  • Made Man
  • *
  • Posts: 242
    • View Profile
Re: Gametext Script?
« Reply #12 on: July 24, 2008, 04:24:55 pm »
Yep in there it seems its work but...

Quote
elseif (($1 == !say) || ($1 == !chat)) vcmp.adminchat || $+ $nick $+ || $2-

its the say command and if i put another example:

Quote
elseif (($1 == !anothertestsaycommand) || ($1 == !atsc)) vcmp.adminchat || $+ $nick $+ || $2-

its not work only with that one

That would be because your telling it to do vcmp.adminchat or $+  $nick $+ or $2-. Which of course it can't do, it needs to be:

Code: [Select]
elseif (($1 == !say) || ($1 == !chat))  {
vcmp.adminchat $nick $2-
}

Offline Tamas

  • Made Man
  • ***
  • Posts: 127
    • View Profile
    • http://www.tamasnet.eu/
Re: Gametext Script?
« Reply #13 on: July 24, 2008, 07:33:48 pm »
Thx. Perfect

Offline Force

  • LU Developer
  • Made Man
  • *
  • Posts: 242
    • View Profile
Re: Gametext Script?
« Reply #14 on: July 24, 2008, 07:57:03 pm »
No problem ;)

Just so you know a || in mirc means or