• Welcome to Vice City Multiplayer.
 

Gametext Script?

Started by Tamas, July 22, 2008, 10:03:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tamas

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

This will depend on what script you use.
For VRocker's Admin, it is;


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

TanaX01

Quote from: [SRS]Tomi on July 22, 2008, 10:03:35 PM
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  :-\

Tamas

Iam using Sasan V3 thats why i asked because this script is not containes the "pink message saying" section.

Jack_Bauer

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?



TanaX01

Quote from: Jack_Bauer on July 22, 2008, 11:24:59 PM
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

Tamas

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"

Jack_Bauer

    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



Tamas

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-

Mattz

Try this one

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

TanaX01

Quote from: Mattz on July 23, 2008, 05:47:16 PM
Try this one

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

in irc  ???  ::)

Tamas

Yep in there it seems its work but...

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

its the say command and if i put another example:

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

its not work only with that one

Force

Quote from: [SRS]Tomi on July 24, 2008, 02:03:07 PM
Yep in there it seems its work but...

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

its the say command and if i put another example:

Quoteelseif (($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:


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

Tamas


Force

No problem ;)

Just so you know a || in mirc means or