Scripting/Squirrel/Functions/Misc/PrivMessageAll

From VC-MP Wiki

Jump to: navigation, search

Arguments

  • Message - The message to send to the player

Example

After the player types '/c pmall', to the player's will be send a PM (green)

function onPlayerCommand( player, cmd, text )
{
     if ( cmd == "pmall" )
     {
          PrivMessageAll("New PM, PM ALL!");
     }
}

Notes

The call onPlayerCommand was also used in the example. More info about this in the corresponding page.

Personal tools
squirrel scripting