Requeriments: S.L.C Extended Timers ( http://forum.vc-mp.org/?topic=1487.0 )
Credits: Diego^ ( This system is based on https://forum.vc-mp.org/index.php?topic=1143.0 )
Video: https://www.youtube.com/watch?v=K_xtzc2nSRU
Commands: /obj, /copy, /objdel, /mov, /rot, /gotomyobj, /objinfo, /objselect (mouse or id)
Code:
[spoiler]
Put in OnScriptLoad:
Put in onPlayerCommand:
Put in onObjectShot:
Put at the end of the main.nut:
Create a file .nut called _MapperSystem.nut with the following code:
[spoiler]
Pastebin: https://pastebin.com/mp77pE0q
I upload the system to pastebin because it exceeded the character limit XD
[/spoiler][/spoiler]
Credits: Diego^ ( This system is based on https://forum.vc-mp.org/index.php?topic=1143.0 )
Video: https://www.youtube.com/watch?v=K_xtzc2nSRU
Commands: /obj, /copy, /objdel, /mov, /rot, /gotomyobj, /objinfo, /objselect (mouse or id)
Code:
[spoiler]
Put in OnScriptLoad:
Code Select
OBJ_DB <- ConnectSQL( "Objects.db" );
dofile( "scripts/timersystem.nut" );
dofile( "scripts/_MapperSystem.nut" );
Mapper.LoadSystem()
Put in onPlayerCommand:
Code Select
::Mapper.onCommand( player, cmd, text )
Put in onObjectShot:
Code Select
::Mapper.onObjectShot(player, object)
Put at the end of the main.nut:
Code Select
function GetTok(string, separator, n, ...)
{
local m = vargv.len() > 0 ? vargv[0] : n,
tokenized = split(string, separator),
text = "";
if (n > tokenized.len() || n < 1) return null;
for (; n <= m; n++)
{
text += text == "" ? tokenized[n-1] : separator + tokenized[n-1];
}
return text;
}
Create a file .nut called _MapperSystem.nut with the following code:
[spoiler]
Pastebin: https://pastebin.com/mp77pE0q
I upload the system to pastebin because it exceeded the character limit XD
[/spoiler][/spoiler]
Notes:
I have tested it in a Blank Server and works fine, if you found some bug, tell me.
I made this system 1 or 2 years ago to use it personally, and since I did not continue to the server I decided to share the system.
I hope someone will find it useful <3.
I have tested it in a Blank Server and works fine, if you found some bug, tell me.
I made this system 1 or 2 years ago to use it personally, and since I did not continue to the server I decided to share the system.
I hope someone will find it useful <3.