Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: Tamas on July 22, 2008, 11:03:35 PM

Title: Gametext Script?
Post by: Tamas on July 22, 2008, 11: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.
Title: Re: Gametext Script?
Post by: Windlord on July 22, 2008, 11:07:39 PM
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
Title: Re: Gametext Script?
Post by: TanaX01 on July 22, 2008, 11:09:43 PM
Quote from: [SRS]Tomi on July 22, 2008, 11: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  :-\
Title: Re: Gametext Script?
Post by: Tamas on July 22, 2008, 11:19:35 PM
Iam using Sasan V3 thats why i asked because this script is not containes the "pink message saying" section.
Title: Re: Gametext Script?
Post by: Jack_Bauer on July 23, 2008, 12: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?
Title: Re: Gametext Script?
Post by: TanaX01 on July 23, 2008, 12:29:11 AM
Quote from: Jack_Bauer on July 23, 2008, 12: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?

HEY JACK HELP MY IN ANNALL IN IRC  ;) COME MSN
Title: Re: Gametext Script?
Post by: Tamas on July 23, 2008, 01: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"
Title: Re: Gametext Script?
Post by: Jack_Bauer on July 23, 2008, 03: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
Title: Re: Gametext Script?
Post by: Tamas on July 23, 2008, 06: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-
Title: Re: Gametext Script?
Post by: Mattz on July 23, 2008, 06:47:16 PM
Try this one

elseif (($1 == !announce) || ($1 == !ann)) vcmp.gametext.all $2-
Title: Re: Gametext Script?
Post by: TanaX01 on July 23, 2008, 11:15:52 PM
Quote from: Mattz on July 23, 2008, 06:47:16 PM
Try this one

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

in irc  ???  ::)
Title: Re: Gametext Script?
Post by: Tamas on July 24, 2008, 03: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
Title: Re: Gametext Script?
Post by: Force on July 24, 2008, 03:24:55 PM
Quote from: [SRS]Tomi on July 24, 2008, 03: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-
}
Title: Re: Gametext Script?
Post by: Tamas on July 24, 2008, 06:33:48 PM
Thx. Perfect
Title: Re: Gametext Script?
Post by: Force on July 24, 2008, 06:57:03 PM
No problem ;)

Just so you know a || in mirc means or