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 MenuQuote from: Pop360 on Jul 20, 2018, 09:50 PMI'm tired of seeing "systems" like that.Hopefully one will be out soon GUI based by me.
Those who have a different way of doing this are rare. More like a copy of the old Warchiefs Squirrel.
Quote from: MEGAMIND on Jul 21, 2018, 06:18 PMmy WriteIniString isWriteIniString("objects.ini","autosaved",i.tostring(), "CreateObject("+o.Model+","+o.World+",Vector"+o.Pos+","+o.Alpha+").RotateToEuler(Vector"+o.RotationEuler+",1);"); }
Quote from: MEGAMIND on Jul 23, 2018, 08:04 AMumm anyone i did this too but i dont see anyobjectNewTimer("LoadAllObjects",10000,1);
function LoadAllObjects()
{ local i = 0;
while(true)
{
local str = ReadIniString( "objects.ini", "objects", i.tostring() );
if(!str) break;
else
{
local a = compilestring(str);
a();
i++;
}
}
for(local a=0;a<GetObjectCount();a++)
{
FindObject(a).TrackingShots = true;
}
}
bool WriteIniString( string filename, string section, string var, string value )
string ReadIniString( string filename, string section, string var )
WriteIniString( "objects.ini", "autosaved", i.tostring(), "CreateObject( "+o.Model+", "+o.World+", Vector"+o.Pos+", "+o.Alpha+" ).RotateToEuler( Vector"+o.RotationEuler+", 1 );" );
function LoadAllObjects()
{
local i = 0;
while(true)
{
local str = ReadIniString( "objects.ini", "autosaved", i.tostring() );
if( !str ) break;
else
{
local eCompile = compilestring( str );
eCompile();
print( "Created Object: "+i );
i++;
}
}
for( local j = 0; j < GetObjectCount(); j++ )
{
FindObject(j).TrackingShots = true;
}
}
LoadAllObjects();
:edit:Quote from: MEGAMIND on Jul 21, 2018, 06:32 PMy compile autosave i just want to read objects.ini so that wahtsoever object is present in objects.ini so when i join game the object should be present at its location + that for thing didnt worked tooDon't know about ini but after reading data from ini file you must have to compile it in order to create those objects at their locations.
Locked_Worlds -> [];
function onPlayerComand(player, cmd, args) {
if(cmd == "world") {
if(!IsNum(args)) return false;
if( Locked_Words.find( args.tointeger() ) != null ) return false;
player.World = args.tointeger()
}
else if( cmd == "lockworld" ) {
if(!IsNum(args)) return false;
if( Locked_Words.find( args.tointeger() ) != null ) return false;
Locked_Words.push( args.tointeger() );
}
else if( cmd == "unlockworld" ) {
if(!IsNum(args)) return false;
if( Locked_Words.find( args.tointeger() ) == null ) return false;
Locked_Words.remove( Locked_Words.find( args.tointeger() ) );
}
}
Quote from: MEGAMIND on Jul 08, 2018, 09:16 AMive been using PHP alot for search engines etc etc but never figured out how to connect it to vcmp server dbThis link contains complete information of creating a connection to MySQL database using php
is there any snippet like thing for it
$mysqli = new mysqli("localhost", "user", "password", "database");
Quote from: KrooB on Jul 07, 2018, 07:58 PMbro i try but not worked your code , sprites & message.nut everything right loc
keyBIND_F1 <- KeyBind( 0x70 );
COLOR_BLUE <- Colour( 0, 0, 255 );
Quote from: ! on Aug 31, 2017, 12:50 PM[spoiler=Sample_Store_File]
[/spoiler]
Quote from: KrooB on Jul 06, 2018, 05:25 PMbro where is the linkFixed
if ( cmd == "drift" )
{
player.World = 9;
player.IsWeaponSyncBlocked = false;
player.CanAttack = false;
MessagePlayer( "*** Teleported To Drifting Arena..If You Want To Exit Type /leave ", player );
}
X: -830.4599999999998
Y: 1077.4720000000002
X: -1145.75
Y: 156.719
Gives 37th section but the actual one is 25th section.