Scripting/Squirrel/Functions/DestroyMarker: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "'''Syntax''' <pre>DestroyMarker(MarkerName)</pre> '''Example''' <source lang=squirrel> function onPlayerCommand( player, cmd, text ) { if ( cmd == "createmarker" ) { Ma...")
 
No edit summary
Line 12: Line 12:
function onPlayerCommand( player, cmd, text )
function onPlayerCommand( player, cmd, text )
{
{
if ( cmd == "createmarker" )
    if ( cmd == "createmarker" )
{
    {
Marker<-CreateMarker(p.UniqueWorld, Vector( 498.03,-83.8962,9.74025  ), 5,RGB(209, 209, 209),0);
          Marker<-CreateMarker(p.UniqueWorld, Vector( 498.03,-83.8962,9.74025  ), 5,RGB(209, 209, 209),0);
}
    }
if ( cmd == "deletmarker" )
    if ( cmd == "deletmarker" )
{
    {
DestroyMarker(Marker);
          DestroyMarker(Marker);
}
    }
    return 1;
}
}
</source>
== Related Functions ==
{{Scripting/Squirrel/Functions/Game_Functions}}

Revision as of 21:30, 22 April 2016

Syntax

DestroyMarker(MarkerName)


Example

function onPlayerCommand( player, cmd, text )
{
     if ( cmd == "createmarker" )
     {
          Marker<-CreateMarker(p.UniqueWorld, Vector( 498.03,-83.8962,9.74025  ), 5,RGB(209, 209, 209),0);
     }
     if ( cmd == "deletmarker" )
     {
          DestroyMarker(Marker);
     }
     return 1;
}

Related Functions