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 - ℛḝξ☂

#1
Description
When I get the health of other player (the local one works)it returns 100
Example:
me -  A
the other player - B
client side: Console.Print( World.FindPlayer( B.ID ).Health )
it always returns 100(returns 0 when the player is dying)

Reproducible
Always

What you were doing when the bug happened
Hitting the player B, B's health decreases, but client side still returns 100

What you think caused the bug
-
#2
GUI::ScreenPosToWorld(Vector screenPosition)

I wonder how this function works, and why the parameter screen position is Vector instead of VectorScreen, any help is appreciated!
#3
Script Showroom / Stunting Server
Aug 05, 2018, 08:53 AM
As some guys were asking me for this script, I decided to upload the scripts here.

This script isn't very neatly scripted, but all of those commands are available to use, you can just host it as you wish, or you can get some useful code or functions to improve your own server.



For more information and help of the server, visit here
https://forum.vc-mp.org/?topic=4355.0

Hope you like it.
#4
Most of the time we don't want the player to teleport to his default spawn position, so we are changing player pos whenever he spawns, but this way isn't working properly for high ping players, they are teleported to where they should be before the default place, which means the player isn't spawning at the right place, so we need to use timer to correct it, but 1000ms timer still can't fix this properly, I want to ask for some better measure, thanks

If there's no other ways to solve this problem I hope we can have a function to disable/enable/change the default spawn position.
#5


As the pic shows, if we are able to add a light point for the vehicle it would be more fun for some mission based servers.

EDIT: I noticed not only is it able to mark the vehicles, but also NPCs, so it is also a hop for some more servers!
#6
About some months ago, some people including me were working on a new server called Rob The Vehicles, at the beginning there's a very terrible bug that whenever server teleported players in vehicles, it ejects players in vehicles or sometimes the drivers are even kicked, we were confused about this, soon it was SahiL who came up with this idea and our server is now using this function to teleport players, no matter you're in vehicles or not, you can teleport to the place. Now I'm going to share the codes with you.

1 -> Place a vehicle at a place where nobody could be able to enter it, this vehicle is only used to "eject" players, remember you have got ID of the vehicle.

2 -> Paste the following function in your script, remember that you have to change the ID_OF_THE_SPECIAL_VEHICLE to the ID you created.
function Teleport( player, posx, posy, posz )
{
    if ( player.IsSpawned )
    {
        if ( player.Vehicle ) player.Vehicle = FindVehicle( ID_OF_THE_SPECIAL_VEHICLE );
        player.Pos = Vector( posx, posy, posz );
    }
}

3 -> Use this function above whenever you need to teleport players, here is a drowning function:
function Drown( player, reason )
{
        Message( "Admin server drowned [ " + player.Name + " ] reason:[ " + reason + " ]." );
Teleport( player, -376.6, 47.8846, 10.7041 ); //teleporting the player
}

#7
Is it possible to limit the range of where a marker should show the especial player(s), I mean, if a player moves close to some place, a marker will be shown only to this player(also had shown to the player(s) in the area already)

I'm going to make a park car command so that players could place their car at many of those single places, so I need to use marker to show where is a place to park at. Is it possible?
#8
Snippet Showroom / car hijack snippet
Mar 01, 2018, 05:16 AM
I'm trying to add that hijack feature to 0.4, here is the code.

LOC: onScriptLoad
EnteringVehicle <- array( 100, -1 );
Carjack_J <- BindKey( true, 0x4A, 0, 0 );

LOC: onPlayerEnteringVehicle(player, vehicle, ...)
if ( EnteringVehicle[ player.ID ] != -1 ) return 1;
EnteringVehicle[ player.ID ] = vehicle.ID;

LOC: onPlayerEnterVehicle(player, vehicle, ...)
EnteringVehicle[ player.ID ] = -1;

LOC: onKeyDown(player, key)
if ( key == Carjack_J )  //
{
if ( EnteringVehicle[ player.ID ] != -1 )
{
local veh = FindVehicle( EnteringVehicle[ player.ID ] );
if ( veh )
{
if ( veh.Driver && veh.Driver.ID != player.ID ) PrivMessage( veh.Driver, player.Name + " hijacked your vehicle!" );
player.PutInVehicleSlot( veh, 0 );
    EnteringVehicle[ player.ID ] = -1;
}
}
       }
Press J when you are entering vehicle as a passenger.
If you have a better idea or something, reply here so that i can improve it. :)
#9
Script and Content Requests / A question
Aug 16, 2017, 09:45 AM
Is there any way to sync the infrared ray of weapon laser sniper? It should work like: when you use that weapon to aim someone, or some objects, there will be a red point shown where you're aiming at, and all players in server can see this.
#10
Support / help
Aug 01, 2017, 01:51 AM
I can't run vcmp browser, whenever I run it, it shows me "checking for updates", and then about 1sec later, it suddenly disappears, after that, nothing happends

Done after reinstalled vcmp browser, btw any idea about what causes this?
#11
Servers / [0.4] (RTV) Rob the Vehicle
Jul 20, 2017, 02:47 PM
Server IP: 51.83.32.20:5192
Slots: 100
Forum: http://rtv.vc-mp.co.uk/
Discord: https://discord.gg/VaBYZ2g
IRC: #RTV.Echo @ LUNet
Server Introduction: http://rtv.vc-mp.co.uk/index.php?topic=45.0
#12
Servers / [0.4] Stunting Server
Mar 04, 2017, 01:01 PM
Server is down. Contact me if you want to host it by yourself.
Server is down and outdated. I've released the script code here:
https://forum.vc-mp.org/?topic=6136.0

VC:MP Stunting Server 0.4

  • Server Name: [0.4] VC:MP Stunting Server [Cloudwards hosting]
  • Server Mode: Stunting/Stubby-Duel
  • Server IP: Server is now hosting on cloudwards.es:8291
  • Hosting: cloudwards.es
  • Player Slots: 100
Since stunting is one of the modes existed in VC:MP, I'm going to develop a server that can give stunters a house for living, so here it is.


[spoiler=click to see server available commands and keys]
* Commands.
/help - to get the help list
/spawnveh <IDs> - spawn a car near you with a random colour
/delveh - delete the cars that you spawned
/goto - take you to the player
/ramp - switch the ability to create ramp on/off
/s - save position
/l - take you to your saved position, won't work if you didn't save
/ff - filp vehicle
/changeskin - change your skin
/setcol1 - change vehicle colour1
/setcol2 - change vehicle colour2
the following is some command that can teleport to to somewhere...
/hz /cc /gd /jd /bank /dyy /jy /jcj

* Keys.
F3 - Add speed for your vehicle
F4 - Stop the vehicle
Shift - Create a ramp in front of your bike
(Num)4,8,6,9 - Hydraulics
[/spoiler]
@The Big V
#13
I am using GUI Label to create a label to show team scores and current base.
Here is my code:
Client side
g_option3 = GUILabel();
function Script::ScriptLoad( )
{
   //score message ( I just copied the code for showing scores. )
       g_option3.Text = "Current Score: Reds: 0 || Blues: 0";
       g_option3.TextColour = Colour( 255, 0, 255 );
      g_option3.FontSize = 15;
      g_option3.Pos = VectorScreen( sizex * 0.8, sizey / 2 - 65 );
}
function Server::ServerData( stream )
{
 local strint = stream.ReadInt( );
 switch( strint.tointeger( ) )
{
case 4 :
    local txt = stream.ReadString();
    g_option3.Text = txt;
     break;
}
}

Server side
function GUITeamScore()
{
// this function will be called everytime the scores change.
    local data = Stream();
    data.WriteInt( 4 );
    data.WriteString( "Current Score: Reds: " + RedScore + " || Blues: " + BlueScore );
    data.SendStream( null );
}

This works fine. But you can see the following pics, label after being changed, its position seems moved a little, is it something changed it?

Label before being changed.
Label after being changed.
#14
Support / Immunity for skimmer
Dec 03, 2016, 06:54 AM
vehicle.Immunity = 255
When i set immunity for skimmer to 255, it works as usual when there's no driver in it. When I sit in, I can make it explode by hitting the walls.( anti-guns immunity still work ), is it anything wrong?
#15
Crash while connecting to servers..

Address: 64B53550 error C0000005
EAX 40000000 EBX 00000000 ECX 64B53550 EDX 00000000
EBP 0014FD00 ESP 0014FCD8 ESI 00000113 EDI 64B53550
Stack:
74A65D93
0001041C
00000113
00000017
00000000
00000113
DCBAABCD
00000000
64B53550
00000113
0014FD98
74A49F3A
64B53550
0001041C
00000113
00000017
00000000
B4134E07
0014FE20
01004970
0022D6CC
00000024
00000001
00000000
00000000
00000030
FFFFFFFF
FFFFFFFF
74A49E47
00000000
64B53550
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000001
00000000
B4134E07
000003A4
0014F8B0
0014FDE8
74A6EE60
C0ACF5A7
00000000
0014FDF8
74A49A80
0001041C
00000113
00000017
00000000
01004984
00000001
B4134E67
00D1F278
00813D20
0000000A
00000001
00000017
64B53550
00000000
00000001
74A454D4
0014FDB8
0014F8B0
0014FF20
74A6EE60
C0ACF667
FFFFFFFE
0014FE00
74A465E0
006DE5AC
005FFF78
0014FE20
0000C030
00D1B2A8
00000000
00000000
00000001
0001041C
00000113
00000017
00000000
0B6781CC
00000280
00000168
44200000
43B40000
00000008
00000008
00000102
00000008
00000100
00000000
00000000
00000500
000002D0
0000002C
0066164A
0014FEF8
0061A120
009B5810
006197DB
009B5810
0014FE8C
006402EA
00000001
00000007
01010101
00000001
00000000
00000000
00002000
006010B0
00000000
00000000
00400000
0052044B
00010003
00000000
00000000
006D5A00
FFFFFFF7
FFFFFFDA
00000289
000001C9
0014FF80
00667BF0
00667BF0
00CE1E73
00667CBE
00400000
00000000
00CE1E73
0000000A
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
0014FFCC
00677E40
FFFFFFFF
FFFFFFFF
0014FF80
00000000
00000044
00CE4888
00CE6700
00CEAAA8
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
00000000
FFFFFFFF
FFFFFFFF
FFFFFFFF
0022C000
0014FF94
76B295F4
0022C000
76B295D0
B60E4BCB
0014FFDC
771C241A
0022C000
B79DD2E1
00000000
00000000
0022C000
C0000005
740852F0
00000000
0014F894
B79DD2E1
0014FFA0
0014F894
0014FFE4
77237220
C0A006ED
00000000
0014FFEC
771C23E9
FFFFFFFF
772439E8
00000000
00000000
00667BF0
Net version 67000, build version 57A5343F.
00400000 S 00614000 N D:\联机VC\gta-vc.exe
0F550000 S 00417000 N D:\Vice City Multiplayer\04rel004\vcmp-game.dll
21100000 S 0005C000 N D:\联机VC\mss32.dll
22100000 S 00014000 N D:\联机VC\mss\Mssa3d.m3d
22200000 S 00015000 N D:\联机VC\mss\Mssa3d2.m3d
22300000 S 00011000 N D:\联机VC\mss\Mssds3ds.m3d
22400000 S 00014000 N D:\联机VC\mss\Mssds3dh.m3d
22500000 S 00014000 N D:\联机VC\mss\Msseax.m3d
22600000 S 00016000 N D:\联机VC\mss\Mssfast.m3d
22D00000 S 00062000 N D:\联机VC\mss\Mssrsx.m3d
22E00000 S 00019000 N D:\联机VC\mss\msseax3.m3d
24600000 S 00011000 N D:\联机VC\mss\Reverb3.flt
26F00000 S 0002A000 N D:\联机VC\mss\Mp3dec.asi
50300000 S 0010E000 N C:\WINDOWS\SYSTEM32\d3d8.dll
53260000 S 00045000 N D:\Vice City Multiplayer\04rel004\libpng15.dll
532B0000 S 00036000 N C:\WINDOWS\SYSTEM32\dinput8.dll
532F0000 S 000EE000 N C:\WINDOWS\SYSTEM32\ddraw.dll
533E0000 S 00086000 N C:\WINDOWS\SYSTEM32\DSOUND.DLL
53580000 S 0070C000 N C:\WINDOWS\SYSTEM32\atiumdag.dll
56360000 S 0001C000 N C:\WINDOWS\SYSTEM32\atiu9pag.dll
65440000 S 0009C000 N C:\Windows\System32\IME\IMEJP\imjppred.dll
654E0000 S 0002F000 N C:\Windows\System32\IME\shared\imjkapi.dll
65550000 S 0001D000 N C:\Windows\System32\IME\shared\imecfm.dll
65570000 S 00195000 N C:\Windows\System32\IME\IMEJP\imjpapi.dll
65C90000 S 00016000 N C:\WINDOWS\SYSTEM32\MPR.dll
67A50000 S 00067000 N C:\WINDOWS\SYSTEM32\WINSPOOL.DRV
6B420000 S 00087000 N C:\WINDOWS\SYSTEM32\wer.dll
6CBE0000 S 002CB000 N C:\WINDOWS\SYSTEM32\iertutil.dll
6CF00000 S 0017D000 N C:\WINDOWS\SYSTEM32\urlmon.dll
6D8C0000 S 00065000 N C:\WINDOWS\SYSTEM32\msvcp110_win.dll
6E040000 S 0004A000 N C:\WINDOWS\SYSTEM32\policymanager.dll
6E0B0000 S 00015000 N C:\WINDOWS\SYSTEM32\samcli.dll
6EC70000 S 00018000 N C:\WINDOWS\SYSTEM32\MSACM32.dll
6EE20000 S 00799000 N C:\WINDOWS\SYSTEM32\atiumdva.dll
6FD10000 S 00068000 N C:\WINDOWS\SYSTEM32\AUDIOSES.DLL
702D0000 S 000C8000 N C:\WINDOWS\SYSTEM32\wintypes.dll
70620000 S 00007000 N C:\WINDOWS\SYSTEM32\d3d8thk.dll
70C20000 S 00055000 N C:\WINDOWS\System32\MMDevApi.dll
71D60000 S 00008000 N C:\WINDOWS\SYSTEM32\VERSION.dll
71D70000 S 00128000 N C:\WINDOWS\SYSTEM32\aticfx32.dll
71F00000 S 00009000 N C:\WINDOWS\SYSTEM32\avrt.dll
72160000 S 0014B000 N C:\WINDOWS\SYSTEM32\PROPSYS.dll
725C0000 S 0001D000 N C:\WINDOWS\SYSTEM32\dwmapi.dll
72600000 S 00023000 N C:\WINDOWS\SYSTEM32\WINMMBASE.dll
72630000 S 00007000 N C:\WINDOWS\SYSTEM32\DCIMAN32.dll
72670000 S 00024000 N C:\WINDOWS\SYSTEM32\WINMM.dll
72AE0000 S 00092000 N C:\WINDOWS\system32\apphelp.dll
72CD0000 S 00022000 N C:\WINDOWS\SYSTEM32\DEVOBJ.dll
72D00000 S 00079000 N C:\WINDOWS\SYSTEM32\UxTheme.dll
73190000 S 0000A000 N C:\WINDOWS\SYSTEM32\HID.DLL
73620000 S 00028000 N C:\WINDOWS\SYSTEM32\ntmarta.dll
73830000 S 00019000 N C:\WINDOWS\SYSTEM32\USERENV.dll
73BB0000 S 0001D000 N C:\WINDOWS\SYSTEM32\bcrypt.dll
73C90000 S 00024000 N C:\WINDOWS\SYSTEM32\SspiCli.dll
73F10000 S 00044000 N C:\WINDOWS\system32\powrprof.dll
73F60000 S 0000F000 N C:\WINDOWS\system32\profapi.dll
73F70000 S 0000C000 N C:\WINDOWS\system32\kernel.appcore.dll
73F80000 S 0000E000 N C:\WINDOWS\system32\MSASN1.dll
73F90000 S 0017F000 N C:\WINDOWS\system32\KERNELBASE.dll
74110000 S 00179000 N C:\WINDOWS\system32\CRYPT32.dll
74330000 S 004FA000 N C:\WINDOWS\system32\windows.storage.dll
748B0000 S 00037000 N C:\WINDOWS\system32\cfgmgr32.dll
748F0000 S 00042000 N C:\WINDOWS\system32\WINTRUST.dll
74940000 S 00058000 N C:\WINDOWS\system32\bcryptPrimitives.dll
749A0000 S 0008D000 N C:\WINDOWS\system32\shcore.dll
74A30000 S 00138000 N C:\WINDOWS\system32\USER32.dll
74B70000 S 00006000 N C:\WINDOWS\system32\PSAPI.DLL
74B80000 S 00084000 N C:\WINDOWS\system32\clbcatq.dll
74C30000 S 0002F000 N C:\WINDOWS\system32\IMM32.DLL
74D70000 S 00045000 N C:\WINDOWS\system32\SHLWAPI.dll
74E20000 S 013FE000 N C:\WINDOWS\system32\SHELL32.dll
76220000 S 0011F000 N C:\WINDOWS\system32\MSCTF.dll
76340000 S 001BD000 N C:\WINDOWS\system32\combase.dll
76560000 S 000EB000 N C:\WINDOWS\system32\ole32.dll
76650000 S 0040B000 N C:\WINDOWS\system32\SETUPAPI.DLL
76A70000 S 00092000 N C:\WINDOWS\system32\OLEAUT32.dll
76B10000 S 00096000 N C:\WINDOWS\system32\KERNEL32.DLL
76BB0000 S 0005F000 N C:\WINDOWS\system32\WS2_32.dll
76C70000 S 000BE000 N C:\WINDOWS\system32\msvcrt.dll
76D30000 S 0007B000 N C:\WINDOWS\system32\advapi32.dll
76F20000 S 00155000 N C:\WINDOWS\system32\GDI32.dll
77080000 S 00044000 N C:\WINDOWS\system32\sechost.dll
770D0000 S 000C2000 N C:\WINDOWS\system32\RPCRT4.dll
771A0000 S 0017B000 N C:\WINDOWS\SYSTEM32\ntdll.dll
78190000 S 00264000 N C:\WINDOWS\AppPatch\AcGenral.DLL

#16

Quote//Quote from stormeus, to block FPV in scripts.:
function onPlayerActionChange(player, oldAction, newAction)
{
    if (newAction == 12 && (player.Weapon == 26 || player.Weapon == 27 || player.Weapon == 32))
   {
        //do sth here.
    }
}

I Mean what sth I need to do? please help :C
#17
General Discussion / any reason?
Sep 05, 2015, 02:40 PM
why someone is unhittable while they're killing with first person?

Sorry for no videos.
#18
General Discussion / The reconnect in the esc
Jul 14, 2015, 07:42 AM
Many people know it and use it to death evade. :'(

So I hope to remove the option.
#19
Here is the code
case "deleteveh":
    {
if ( player.Vehicle )
{
local v = player.Vehicle;
QuerySQL( MainDB, "DELETE FROM Cars WHERE ID='" + v.ID + "'" );
v.Delete();
MessagePlayer("Deleted vehicle successfull!y",player);
}
break;
}
// PS: The directory is right.

Then I use that, although the vehicle deleted, it'll appear when the server reloaded.
There is no error on the console.
#20
General Discussion / Problem about players
May 29, 2015, 02:42 PM
Why some players can not change to window mode?
As they first join a server, they have a full screen.
They said it seemed like in 0.3.
And the textdraws and sprites won't be there they should be. :'(