Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - vitosca

#1
Support / Re: Admin Command
Jan 24, 2016, 11:33 AM
add to onPlayerCommand

if(cmd == "car"){
      CreateVehicle( text.tointeger(), 0, player.Pos.x,player.Pos.y,player.Pos.z, player.Angle, 68, 39 );
      MessagePlayer( "[#FFFF81]---> car", player );
}

use /car [car_id]
ids here - http://murdock.in/wiki/index.php/Vehicle_IDs

#2
Support / Re: [SERVER] GetWorldBounds
Jan 22, 2016, 09:19 PM
Sorry for dumb question. I have make that zone

function onScriptLoad()
{
   SetWorldBounds( -636, -720, 793, 703 );
}
but it no affect on game

edit: It's affects only after reconnect 
#3
Support / Re: [SERVER] GetWorldBounds
Jan 22, 2016, 05:14 PM
Thank you so much. It's really a big problem with documentation for vc-mp.
#4
Support / [SERVER] GetWorldBounds
Jan 22, 2016, 01:59 PM
Hello. I have latest server windows version x64.

How to parse GetWorldBounds data to float?
Example from http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions/Bounds
function onScriptLoad()
{
    local boundaries = GetWorldBounds();
    print( "Worldboundaries has been set to :" + boundaries.maxX + "," + boundaries.minX + "," + boundaries.maxY + "," + boundaries.minY );
}
don't work for me. I got an error 'Member Variable not found'