Scripting/mIRC/Functions/Misc/Announce

From VC-MP Wiki

Jump to: navigation, search

This announces a message to a player (On-screen game text)

Syntax

alias vcmp.announce !return $dll(" $+ $scriptdirvcmp.dll", Announce, $1-)

Arguments

  • $1 - ServerID
  • $2 - PlayerID
  • $3- - Text

Example

This will send OMG! This is a test! as an announcement when somebody types !test in game

on *:SIGNAL:vcmp.player.command:{
     if ( $3 == test ) {
          vcmp.announce $1 $2 OMG! This is a test!
     }
}

Notes

This example uses vcmp.player.command.

Related Functions

Personal tools
squirrel scripting