Vice City: Multiplayer

Server Development => Scripting and Server Management => Script Showroom => Topic started by: MRSK143 on Oct 10, 2021, 03:26 AM

Title: [ADVANCED] Diepos / Deathpos System
Post by: MRSK143 on Oct 10, 2021, 03:26 AM
Hi guys i have made Diepos / Deathpos system that is free from bugs here the diepos.nut file download it and paste it in your server scripts folder

(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Ffiles.thijn.ovh%2Fimg%2Fabea6ccda70c3a1bd876fb588479419a%2Fdiepos.rar&hash=f5647e2afe8942b17c3bf18efaf047771c5234dc) (http://files.thijn.ovh/download/abea6ccda70c3a1bd876fb588479419a/diepos.rar)

now you just have to paste some lines on different events

[spoiler]Paste this line in onScriptLoad
dofile("scripts/diepos.nut");
diepos.CreateDieposArray();

Paste This Line in onPlayerJoin
diepos.ConnectClassWithPlayer(player);
Paste This Line in onPlayerDeath
diepos.SaveDeathPosistion(player);
Paste This Line in onPlayerKilll
diepos.SaveDeathPosistion(player);
Paste This Line In onPlayerSpawn
diepos.LoadDeathPosition(player);
Paste This Line In onPlayerCommand
diepos.DiePosCMDS(player, cmd, text);[/spoiler]

So The Code Is Tested IF You are facing any problem in this contact me on discord MR SK#5162