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

Topics - MEGAMIND

#21
Support / Ann/MSG in a world
Sep 09, 2018, 06:42 PM
Hi everyone does anyone know how to announe or message everyone in a specific world for example

I want to announce or display a message to everyone in world 2, but it should not be displayed in world 1
#22
Support / custom vehicle sound
Aug 26, 2018, 06:20 PM
How to have a custom vehicle sound means if ur in a sports car so that car can have a sound of a sportscar but not sound of vc default cars can we have something like sound.wav

If yes then how cuz ive never tried it, except just once heard the lw has it omehow
#23
so how do i
set_time_limit(5000); //5 sec
for

$test = shell_exec("test.bat");
echo $test."</br>";

so far i tried this (and even more then this but failed) the script executes like forever keeps on loading loading....up to max execution timeout maybe it was 300 oh forget it

here what i did

<?php
set_time_limit
(5000);
$test shell_exec("test.bat");
echo 
$test."</br>"
echo 
"<font color='white'>i am a test";
?>

dont reply to this topic until you dont know about php (so i call out every php user to solve my mess out pls)
thanks,
#24
objDerby <- null;
objDerby = CreateObject(374,22,Vector(-1479.5, 756.663, -8.2715),255);
objDerby.RotateToEuler(Vector(0, 0, 0),1);


objDerby = CreateObject(374,21,Vector(-1369.2, 835.432, 56.9949),255);
objDerby.RotateToEuler(Vector(0, 0, 0),1);
objDerby = CreateObject(374,21,Vector(-1310.09, 833.648, 55.2657),255);
objDerby.RotateToEuler(Vector(0, 0, 0),1);
objDerby = CreateObject(374,21,Vector(-1449.49, 837.678, 57.0867),255);
objDerby.RotateToEuler(Vector(0, 0, 0),1);
objDerby = CreateObject(374,21,Vector(-1460.24, 930.771, 56.7762),255);
objDerby.RotateToEuler(Vector(-2.62526, -2.81225, -1.39358),1);
objDerby = CreateObject(374,21,Vector(-1462.69, 1002.8, 61.2877),255);
objDerby.RotateToEuler(Vector(0, 0, 0),1);
objDerby = CreateObject(374,21,Vector(-1377.89, 999.987, 60.4809),255);
objDerby.RotateToEuler(Vector(0, 0, 0),1);
objDerby = CreateObject(374,21,Vector(-1314.96, 1000.45, 56.1717),255);
objDerby.RotateToEuler(Vector(0, 0, 0),1);
objDerby = CreateObject(374,21,Vector(-1300.89, 919.676, 57.4026),255);
objDerby.RotateToEuler(Vector(0, 0, 0),1);
objDerby = CreateObject(374,21,Vector(-1431.77, 957.874, 52.6764),255);
objDerby.RotateToEuler(Vector(0, 0, 0),1);
objDerby = CreateObject(374,21,Vector(-1391.17, 895.938, 42.6071),255);
objDerby.RotateToEuler(Vector(0, 0, 0),1);
objDerby = CreateObject(374,21,Vector(-1351.47, 962.376, 51.7883),255);
objDerby.RotateToEuler(Vector(0, 0, 0),1);
objDerby = CreateObject(374,21,Vector(-1483.86, 854.105, 54.0395),255);
objDerby.RotateToEuler(Vector(0, 0, 0),1);
objDerby = CreateObject(374,21,Vector(-1490.36, 969.222, 57.7449),255);
objDerby.RotateToEuler(Vector(0, 0, 0),1);

objDerby.TrackingBumps = true;

i have many obejcts to bump objects is actually one but vectors are different so how to bump them
#25
hello i want to spawn a random vehicle using a cmd

for example using /car i get any vehicle not using FindVehicle(anyidgoeshere)

like if my server even doesnt contain a packer so it spawn a packer for me

like also createvehicle(randomly)
#26
Off-Topic General / what do these mean?
Aug 08, 2018, 02:11 PM
I have seen many scripters using this :: Before using some codes like ::createvehicle so what do these mean?, do? Are neccessary or not?
#27
ik that function doesnt exits  PutPlayerToVeh but it ws in like pawno 0.3 vcmp

so as the topic makes it familiar, how do u put a player directly to a vehicle
like my question is like if a take a pickup or soething or even do a cmd
so how will be a player directly siting in a vehicle?

example : /bike ---> // so the player sits in a bike or u can say that the player is put in to the bike directly

so any example or snippets on this question

Regards
#28
hi everyone i have asked this question almost idk many time probably

my question wass how do i set distance for these 3d labels like samp when u reach it near it displays otherwise when u move away it stops displaying

but how do i we set that distance thing to it, anyone pls

#29
as the topis says how can i load up a custm font

store/fonts/pricedown.ttf
and this in store/scripts/main.nut

Label.FontName = "pricedown.ttf";
am i doing it wrong??
#30
ok hello comunity, first of all whats that called


secondly how is it made?

is it an object from within the game and then modified or something else, i use to play samp they have it there but this in a vcmp server i found it quite interesting best of luch to that server owner... so how do we make this?
#31
Vehicle Showroom / Cuban Exhaust
Jul 25, 2018, 08:02 AM
I made this XML bcz someone asked it here https://forum.vc-mp.org/?topic=5865.0
so,

Content Type: Vehicle
Original Author: UGURBURAK
Source Link: link to car https://www.gtaall.com/gta-vice-city/cars/5637-anadol-gtaturk-drift-car.html [xml is mine!]
Modifications:: just Created XML Files
Modified By: MEGAMIND
Authorized By Original Author?: (Couldn't get in touch with him!)
Content Screenshots: ...



Download:

so its virus free Virustotal

Note:- if u do need that kind of exhaust in this post u will have to modify ur particle.txd  https://forum.vc-mp.org/?topic=5865.0
#32
Support / onObjectBump
Jul 25, 2018, 07:28 AM
umm this doesnt work
fobject <- CreateObject(353, 1, -1709.27, -268.655, 14.8683,255);
fobject.TrackingBumps = true;

function onObjectBump( object, player )
{
MessagePlayer("You've bumped in to object id: "+object,player);
}
#33
I found many according to this question

1.Custom radio staions?
2.Host for gta radios

so here i am with a little knowledge about this stuff, which may or maynot be helpfull for few

ok so without any further discussion here u go


first make  a new folder and rename it as radio (or whatever) now major part is this u would have to make a file named as listen.pls here the listen.pls will contain ur streaming files ok so lets built a listen.pls as i said before creat a filenamed as listen.pls (using note pad.txt rename it as listen.pls) now edit it/ open it and do this kindly donot modify until u have the complete knowledge of these stuff for ur own custom radio station (where u would like to upload ur own songs which will loop out)

the url below are hosted so u can put ur own url instead of mine

so to actually make it run u have to do this [playlist] -> which will tell the host and file that these are the below shits which are required to run
file 1: -> is the path of ur radio
title 1:- the titlle of ur radio to  broadcast
lenght1=-1 // eh idk much about it but it was said to be -1 default in an article
numberofenteries // define that how much files have u addded to it 2 3 or 1
version: // leave it as default 2

[playlist]
File1=http://web-net.tk/webnet-official-emerald-plus/webnet-official-radio/stream/c/2.mp3
Title1=WEBNET RADIO English #1
Length1=-1

File2=http://web-net.tk/webnet-official-emerald-plus/webnet-official-radio/stream/c/1.mp3
Title2=WEBNET RADIO English #2
Length2=-1

NumberOfEntries=2
Version=2

ok now for the real stations we do this

[playlist]
File1=http://web-net.tk/webnet-official-emerald-plus/webnet-official-radio/stream/h/tunein-station.pls
Title1=WEBNET RADIO Hollywood #1
Length1=-1

File2=http://web-net.tk/webnet-official-emerald-plus/webnet-official-radio/stream/h/tunein1-station.pls
Title2=WEBNET RADIO Hollywood #2
Length2=-1

NumberOfEntries=2
Version=2

now make a newfolder in the same directory and rename it as stream, within the stream obviously many of u have ur own taste of songs so make subfoldders like h for hollywood songs, b for bollywood ,gta for gta radios etc etc and then add ur songs.mp3 to those folders now all u  need is an html hosting service which is netlify ofc one of the best ik yet or u can start ur own host if u have a vps

still having issues discord me MEGAMIND#8033 or u can find me on vcmp discord channel too


if u wanna know what does tunein-station.pls is so its simple its a radio station url forwarded by a company to an ip
which livecasts and then other teams comeup on same ip to livecast or braodcast there show and it continues....

so what do they have inside tunein-station.pls? they ahve something like this

[playlist]
numberofentries=1
File1=http://77.168.22.74:8008/stream
Title1=(#1 - 30/250) AMW HIPHOP | Amsterdams Most Wanted UNDERGROUND HIPHOP | HD stream
Length1=-1
Version=2


now where to host ir i already told u that either use locahost xampp software and portforward it

or use other hosting sites there are many free sites available out there especaily html based
#34
Support / readinistring
Jul 21, 2018, 06:18 PM
actually im new to ini and using this first time so how do i read ini

my WriteIniString is
WriteIniString("objects.ini","autosaved",i.tostring(), "CreateObject("+o.Model+","+o.World+",Vector"+o.Pos+","+o.Alpha+").RotateToEuler(Vector"+o.RotationEuler+",1);"); }

and my output to that is

[objects]
0                           = CreateObject(636,17,Vector(-1399.7, -650.131, 15.8679),255).RotateToEuler(Vector(3.0996, 3.0871, -1.26476),1);

how would i be able t read it

so far i have tried this but it wont work
if (ReadIniString( "objects.ini", "objects", i.tostring() )==null);
{
         print("objects reloaded");
    }
#35
Support / lock a world
Jul 19, 2018, 08:45 AM
as the topic says can we lock a specific wolr and then open it our selves too?
#36
Support / player.world
Jul 18, 2018, 06:14 PM
does anyone know that how can we make a cmd in which if a player does /goto world of his own choice like

/world 15 upto so on

if anyone know how to do it, ill be gratefull
#37
Support / ini object n lag!
Jul 18, 2018, 03:28 PM
hello everyone i have an issue, well it works fine i can save load objects but the problem is it lags as hell

well heres the code

autosave <- NewTimer("SaveObjects",10000,0);
LoadAllObjects();

and in functions

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;
  }
}

function SaveObjects()
{ local n = GetObjectCount();
  for(local i=0;i<n;i++)
  {
    local o = FindObject(i);
    if(o) {
    WriteIniString("objects.ini","autosaved",i.tostring(), "CreateObject("+o.Model+","+o.World+",Vector"+o.Pos+","+o.Alpha+").RotateToEuler(Vector"+o.RotationEuler+",1);"); }
  }
}

function LoadAutoSaved()
{
  local i = 0;
    while(true)
    {
      local str = ReadIniString( "objects.ini", "autosaved", i.tostring() );
      if(!str) break;
      else
      {
        local a = compilestring(str);
        a();

        i++;
      }
    }
    for(local a=0;a<GetObjectCount();a++)
    {
        FindObject(a).TrackingShots = true;
    }
}
it lags alot when a second player either joins or not while creating object it lags too

so is there a better way to do it
#38
Support / weapons are not readable
Jul 15, 2018, 12:18 PM
i just made the poly the rest of it is XMAIRS wep system probably idk

so what the problem, its not reading some of the weps name

else if ( cmd == "wep" )
 {
 if (!text) MessagePlayer("/wep <Wep Name>", player);
 else
 {
 local Pos = player.Pos, checkpoly;
 checkpoly = InPoly( Pos.x, Pos.y, -682.612488, 1201.854736,  -682.759827, 1208.136597, -666.613953, 1211.414185,  -666.614258, 1202.456909);
 local wep = GetWeaponName(GetWeaponID(text));
 if( checkpoly == false ) MessagePlayer("You need to be at the ammunation shop in Downtown to buy weapons!", player);
 else if (wep == "M60")
 {
 if ( player.Cash <= 49999) MessagePlayer("You need to have atleast 50000$!", player);
 player.SetWeapon(32,9999)
 player.Cash-=50000;
 MessagePlayer("Successfully Received An [#ffffff]"+wep+"", player);
 }
 else if (wep == "M4")
 {
 if ( player.Cash <= 49999) MessagePlayer("You need to have atleast 50000$!", player);
 player.SetWeapon(26,9999)
 player.Cash-=50000;
 MessagePlayer("Successfully Received An [#ffffff]"+wep+"", player);
 }
 else if ((wep == "Ruger")||(wep == "ruger"))
 {
 if ( player.Cash <= 49999) MessagePlayer("You need to have atleast 50000$!", player);
 player.SetWeapon(27,9999)
 player.Cash-=50000;
 MessagePlayer("Successfully Received An [#ffffff]"+wep+"", player);
 }
 else if (wep == "MP5")
 {
 if ( player.Cash <= 49999) MessagePlayer("You need to have atleast 50000$!", player);
 player.SetWeapon(25,9999)
 player.Cash-=50000;
 MessagePlayer("Successfully Received An [#ffffff]"+wep+"", player);
 }
 else if ((wep == "UZI")||(wep == "uzi"))
 {
 if ( player.Cash <= 49999) MessagePlayer("You need to have atleast 50000$!", player);
 player.SetWeapon(23,9999)
 player.Cash-=50000;
 MessagePlayer("Successfully Received An [#ffffff]"+wep+"", player);
 }
 else MessagePlayer("Sorry we don't have that type of model of the weapon "+text+" here.", player);
 }
 }

so i have checked it so far its not reading the wep uzi i also added a wep flamethrower but didnt read the too


any help would be appreciable
#39
Support / Connect lw ( all server )
Jul 12, 2018, 11:51 AM
any respnse to this error in near future? , facing this issue since update rel04 uptil rel06
https://streamable.com/7x2s3
#40
Off-Topic General / php signature
Jul 11, 2018, 07:12 AM
sup everyone how can we create a signature like thijns code
i have tried this but gives me errors when i solve thos errors then the image displays but with no text or kills etc..

<?php
$servername 
"localhost";
$username "root";
$password "root1";
$db "vcmpdb";

// Create connection
$conn = new mysqli($servername$username$password$db);
// Check connection
if ($conn->connect_error) {
    die(
"Connection failed: " $conn->connect_error);
}
//echo "connection successfull";

//$acc = "SELECT Name, IP, Level, Kills, Deaths, Cash, Bank, Joins, nogoto, WonLms, RandSpawn FROM Account";




if ( isset( $_REQUEST['nick'] ) )
{
$im  imagecreatefrompng("Signature_Background.png") or die("Cannot Create new GD image");
$stats  imagecolorallocate($im255208240);
$nick  imagecolorallocate($im25543178);
$font imageloadfont"Font.gdf" );
$sql  'SELECT * FROM Account WHERE Name = \''.addslashes$_REQUEST['nick'] ).'\'';


header('Content-Type: image/png');
imagepng($im);
imagedestroy($im);

foreach ($db->query($sql) as $row)
{
imagestring($im$font10037$_REQUEST['nick'], $nick) or die("Cannot place Text");
imagestring($im$font38010$row['Kills'], $stats) or die("Cannot place Text");
imagestring($im$font38035$row['Deaths'], $stats) or die("Cannot place Text");
imagestring($im$font38060, ( ( ( $row$row['Kills'] ] > ) && ( $row$Fields['Deaths'] ] > ) ) ? round($row$Fields['Kills'] ] / $row$Fields['Deaths'] ],2) : ), $stats ) or die("Cannot place Text");
}

}
?>
if someone wants to check the url so try here which is the output http://wno-host.ddns.net:90/sign/sign.php?nick=MEGAMIND  @EK.IceFlake   @Doom_Kill3R and heres the input query http://wno-host.ddns.net:90/sign/