function onScriptLoad()
{
CreateSphere( Vector( 194.33, -1195.3, 26.16 ), 3.0, Colour( 0, 136, 255 ) );
oFence <- CreateObject( 1289, Vector( 844.1, -419.5, 14.97 ) );
return 1;
}
function onPlayerEnterSphere( player, sphere )
{
if ( sphere.ID == 12 )
{
MessagePlayer( "Anticefur CENTER:", player, 0, 136, 255 );
MessagePlayer( "Owner: xXxMDjxXx", player, 0, 136, 255 );
MessagePlayer( "Odkup: 100€", player, 0, 136, 255 );
MessagePlayer( "Najem: 1€", player, 0, 136, 255 );
MessagePlayer( "Vsebuje: orozja, vozila, parkirna hisa, ograja", player, 0, 136, 255 );
}
return 1;
}
function onPlayerCommand( player, command, params )
{
local cmd = command.tolower();
if ( cmd == "accso" )
{
if ( oFence ) oFence.VirtualWorld = 2;
}
else if ( cmd == "accsz" )
{
if ( oFence ) oFence.VirtualWorld = 0;
}
return 1;
}