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

#61
hello everyone i am working on gui for the first time and want to know that how can i solve this problem
my code

 - > store/scripts/main.nut
::fireman_wnd <- null;
::button1 <- null;
::button2 <- null;

then i added this to
function Server::ServerData(stream)
{
local type = stream.ReadString();
local id = stream.ReadInt();

if(type == "NO_fireman")
    {
        ::fireman_wnd = null;
        ::button1 = null;
        ::button2 = null;
    }
    if(type == "fireman")
    {
        GUI.SetMouseEnabled(true);
        ::fireman_wnd = GUIWindow(VectorScreen(sX / 4, sY / 4),VectorScreen(sX / 3, sY / 4),Colour(255,255,255),"You want to fireman job?")
        ::button1 = GUIButton(VectorScreen(50,50),VectorScreen(100,50),Colour(0,255,0),"true");
        ::button2 = GUIButton(VectorScreen(250,50),VectorScreen(100,50),Colour(255,0,0),"false");
        ::fireman_wnd.AddChild(button1);
        ::fireman_wnd.AddChild(button2);
    }

then i added this to
function GUI::ElementClick(element, mousex, mousey)
{
if(element == button1)
    {
        GUI.SetMouseEnabled(false);
        local Data = Stream();
        Data.WriteString("NO_fireman");
        Server.SendData(Data);
    }
    if(element == button2)
    {
        GUI.SetMouseEnabled(false);
        local Data = Stream();
        Data.WriteString("YES_fireman");
        Server.SendData(Data);
        local Data = Stream();
        Data.WriteString("NO_fireman");
        Server.SendData(Data);
    }
basically my aim was that if i do /fireman or just createcheckpoint so a box appears questioning me that do u want a fireman job with buttons yes or no so that when i click yes the skin changes else no so not ckin changed,... im new to this so kindly give some hands plz ty :)
#63
Support / custom car weps?
Jun 03, 2018, 08:10 PM
hellow everybody i have a weird question, well i made a destruction rally game mode with cars having tank fire rocket inside them,

what i ment to say was when u fire from a rhino a missile fires so i did same with the cars so problem occured that i had a car duel with couple of freinds none of us were able to bomb each other or destroy ech other any help regarding my problem
Thanks,

ik once A great vcmp scripter Doomkiller made that type of thing but no one could have ever acheived that i tried my best i can destroy normal cars with no one in them but not the cars having players inside them, and thats the place when we couldnt destroy each other

i hope i may get positive replies...

a clip of my game mode
https://www.youtube.com/watch?v=yvOz78VDRfc#

one more thing y do we have this <extraflags>0</extraflags> ik its something fr special abilitites so i replaced it with rihinos flags, thats how i was able to fire rokcets but still the problem is what i said above ,so is there any way to add a weapon to a vehicle? help pls
#64
Off-Topic General / Samp Updated
Mar 26, 2018, 04:06 PM
http://forum.sa-mp.com/showthread.php?t=644105

so by reading in the given link above says it got rejected but wait

http://forum.sa-mp.com/showthread.php?t=648633

so it got released as unofficial

so We need VCMP DEVS Back to grow/enhance vcmp more

idk if its possibile for devs but

be more like mta sa for vcmp
XD

Note:- I donot want unwanted arguments on this topic

#65
General Discussion / PHP Ports Check
Jan 27, 2018, 10:16 AM
Php Ports Checker

hey guyss i will be needing help here & trying to figure it out that how can i make my server ports staus show online it keeps on saying offline , even when its online

i made this

well it works for other domains and stuff+ i am running it on xampp
but is shows me offline for server (vcmp)

i surfed the web alot and found this topic from a place
http://vcmp.liberty-unleashed.co.uk/forum/index.php?topic=1385.0

a guy also had the same problem but he figured it out for his samp by taking an idea from it

well, i treid it but when i did i got this



Its not thijins server checker :) :p --> [EDIT]came to find out that it was for 0.3

==========================================

Help or guide line can be appreciative (Php Experts out there)
#66
Client Scripting / Display Sprite with cmd!
Sep 02, 2017, 08:27 AM
Display Sprite with cmd!

================Add this on server side====================
function onPlayerCommand( player, cmd, text )
{
if(cmd=="overlay"){
Stream.StartWrite()
Stream.WriteInt(1)
Stream.SendStream(player)
}
else if(cmd=="off"){
Stream.StartWrite()
Stream.WriteInt(3)
Stream.SendStream(player)
}
else if(cmd=="web"){
Stream.StartWrite()
Stream.WriteInt(2)
Stream.SendStream(player)
}
}

function onClientScriptData(player)
{
if (type == 1)
{
Stream.StartWrite();
Stream.WriteInt(1);
Stream.SendStream(player);
}
if (type == 2)
{
Stream.StartWrite();
Stream.WriteInt(2);
Stream.SendStream(player);
}

if (type == 3)
{
Stream.StartWrite();
Stream.WriteInt(3);
Stream.SendStream(player);
}
}

==================Add this to your client side==========================
function Server::ServerData(stream)
{
local type = stream.ReadInt();

if (type == 1) {//CreateSprit
::sprite <- GUISprite("overlay.png", VectorScreen(40, 290));
::sprite.Size = VectorScreen(180, 300);
::sprite.Alpha = 210;
::sprite.AddFlags(GUI_FLAG_MOUSECTRL);
}

if (type == 2) {//CreateSprit
::sprite <- GUISprite("web.png", VectorScreen(40, 290));
::sprite.Size = VectorScreen(180, 300);
::sprite.Alpha = 210;
::sprite.AddFlags(GUI_FLAG_MOUSECTRL);
}
if (type == 3) {//Delete Sprit
::sprite <- null;
}
}

Use cmd
/overlay -> to open a sprite, /web -> to open second sprite, /off to off any of the sprite

This is my first snippet for clientside. I thought this will help players(newbies) on how to make a simple cmd to activate any of the function they are trying to perform..

Pics
[spoiler]

[/spoiler]
#67
Support / object & pickup
Aug 23, 2017, 09:23 AM
hi guyz is it possible to make an object take a pickup and then make it moveby a pickup to somelocation?

first i made an object on
function onScriptLoad()
{
ramp <- CreateObject( 560, 0, -293.014, -597.059, 12.8528, 255);
}

then on player cmd

if(cmd == "test" )
{
MessagePlayer("ramp moved!", player );
                ramp.MoveTo( Vector(-329.487, -598.352, 12.8351), 1000)
                ramp.RotateTo( Quaternion(0, 0, 0.5, -0.866025), 0 );
                CreatePickup(368, Vector(-329.487,  -598.352, 12.8351));
}

then on playerpickup

function onPickupPickedUp( player, pickup )
{
if ( ramp.pickup.Model == 368 )
 {
  ramp.Moveby(368, Vector(384.108, -805.87, 9.65089), 1000 )
 }
}

but this doesnt work the obejct moves to a location when /test is applied but when it reaches to a pickup it doesnot moves to speciaifed location
#68
Support / sprite as a button
Aug 20, 2017, 07:54 PM
hey guyyz how to have a sprite as a button?

test <- null;
 
function Script::ScriptLoad()
{
:: test = GUISprite("tesst.png", VectorScreen(x, y));
::GUI.SetMouseEnabled(true);
}
#69
Grand Theft Auto Vice-City (New Game-Mode)
Releasing Soon......

https://www.youtube.com/watch?v=DXjuGwENUDw#
#70
Map Showroom / New City
Aug 12, 2017, 11:33 AM
New City Map Mode For vc-mp & VC
By Megamind
Content Type: MAP'S
Original Author: Megamind
Modifications: Convertion of VC MAP
Modified By: Megamind
Originaly here: http://www.gtainside.com/user/muhommadraahim1
Download here: http://files.thijn.ovh/download/4537fc9074e70d30d94a7d0a231094e7/mega.rar

PICS

#71
Map Showroom / Real Timecyc effect's
Aug 11, 2017, 02:35 PM
Real timecyc effect's for both gta-vc & vcmp
BY MEGAMIND
Content Type: MAP'S
Original Author: Megamind
Modifications: Convertion of normal vc timecycl to realistic effect's
Modified By: Megamind
Originaly here: http://www.gtainside.com/user/muhommadraahim1
Download here: http://files.thijn.ovh/download/02c0381b49821cd17c5fa9f086f9b5d2/store.rar

how to install?
Just copy these new files to ur server/store/map

PICS






Whats more good?
you can see faroff places more clearly now!
#72
Drift-X MAP Mod V0.1 FOR VC & Sanchez Bumpy Race From Army To Hymanstadium

BY MEGAMIND
Content Type: MAP'S
Original Author: Megamind
Modifications: Convertion of VC MAP
Modified By: Megamind
Originaly here: http://www.gtainside.com/user/muhommadraahim1
Download here: http://files.thijn.ovh/download/212160c645a9219ffb10b9b4966bba63/store.rar

Pics



#73
Skin Showroom / New Tommy Model
Jul 24, 2017, 07:34 PM
UPDATED!

By Megamind
Content Type: Skin
Original Author: Megamind
Modifications: Convertion of vcped to player
Modified By: Megamind
Originaly here: http://www.gtainside.com/user/muhommadraahim1

hey guyz i was working for the first time on dff files and made out a great model for tommy
i merged tommy's head with beach guy it looks cool so i thuoght i might share it here

http://files.thijn.ovh/download/354a2906ac06d9ef66174a9f474e7ec1/skins.rar

 Used DFF EDITOR!


image:

#74
Off-Topic General / gta vc/vcmp mods
Jul 23, 2017, 11:54 AM
Map's for vcmp/gta-vc

Hi guys i just started modding gta-vc . U can download map's from the link http://www.gtainside.com/user/muhommadraahim1
i would be glad if u appreciate my work!

You!can also use few of them in your vc-mp server script
by converting them from Thijn's ipl converter ( http://thijn.minelord.com/vcmp/iplConvert/ )

If someone need's map's for his server they can provide me with a graphical design for their server so i can build a great map for them
contact me regarding above line here http://forum.vc-mp.org/?action=profile;u=483
#75
General Discussion / pos saving on notepad
Jun 25, 2017, 02:36 PM
hi and how's everyone its a good day and hope u all are fine too Eid mubarak to all

hi i was searching for a code i founded in my old 2year book there was a code like fopen which lets you save anything on a notepad hows that possible in vcmp any ideas


i need to save player.pos on my notepad any ideas thnx for helping.........
#76
hi guyzz how to convert gta sa vehicles for gta vc kindly guide all steps thanks...
#77
Bugs and Crashes / If Bug Idk!
Jun 12, 2017, 10:18 PM
hi every one i just want to know  that if its my fault or server problem or any bug  i guess

yesterday i was playing in TDC seerver with many freinds like MKT.KILLER AND RK and three more i forgot there name..
so the problem was while playing one two of us entered to a world and then left that world by have a cmd like /leave

when RK did that his name changed to sanam and when it happened to me my nick changed to giro and after some time the other one name changed to john


i mean i dont even have change nick cmd or anything like that in my server my leave cmd is also normal with nothing even in it

just like this if (cmd == "leave")
{
player.World = 1;
}
see nothing in it so kindly tell if its my fault or server problem or any problem from backend of vcmp server update or a bug

thanku for reading........
#78
General Discussion / How To Set World?
Jan 05, 2017, 09:51 PM
hi can i get some help plz

i was wondering that how to set a world for a player like VK'S SERVER
#79
General Discussion / NPC
Dec 28, 2016, 07:51 PM
need npc i found this link by
kennedyarz Link: http://s000.tinyupload.com/index.php?file_id=35741548403099381299 how to use this shit
#80
General Discussion / GUI PRINT not wrking?
Sep 15, 2016, 07:37 PM
GUI PRINT NOT WORKING IT DOES NOT DISPLAY ANY MESSAGE LIKE



code is
function Script::ScriptLoad()
{
Print("Client side scripts loaded.");
}