Hashes!!??
how do i create save files? i need this to be capable of directing what player is who.
example from my LU server,
else if ( cmd == "go" )
{
local Admin = hsh_Admin.Get( player.LUID );
if ( !Admin ) MessagePlayer( "*You Must be an admin to use this command", player );
eles if ( Admin )
{
this is one of the many ways i script. i see nothing about hashes in the wiki
do i need to use WriteIniString
instead.
This would be helpful to building a base script and highly liked
http://forum.vc-mp.org/?topic=206.0
That may help you, though I never tested it.
Well, you can make a class exactly same to your hash class, but use a database instead of a file inside it. Hope you got me
maybe this plugin will help you through hashes
hashing04rel32
Thank you KAKAN I am a huge hasher xD example
**code select messed up the code ,to lazy to modify
else if ( ( cmd == "spawncar" ) || ( cmd == "spawn" ) || ( cmd == "c" ) || ( cmd == "vehicle" ) || ( cmd == "veh" ) || ( cmd == "v" ) )
{
local car = Car.Get( player.Name + "Car" );
if ( car ) MessagePlayer( "*You Must Wait", player );
else if ( !car )
{
if ( player.Vehicle )return false;
{
if ( text )
{
local pTemp = split( text, " " ), ID = 90;
if ( IsNum( pTemp[ 0 ] ) ) ID = pTemp[ 0 ].tointeger();
if ( ( ID >= 90 ) && ( ID <= 150 ) )
{
local vehicle = CreateVehicle( ID, Vector(player.Pos.x, player.Pos.y + 1, player.Pos.z), player.Angle);
if ( vehicle ) player.Vehicle = vehicle;
vehicle.OneTime = true;
MessagePlayer( "[#ff0000]* Vehicle spawned: " + vehicle.Model, player );
Car.Add( player.Name + "Car", 1 );
}
else MessagePlayer( "Forbiden Vehicle ID", player, Colour ( 255, 255, 255 ) );
}
else MessagePlayer( "Forbiden Vehicle ID, Please Try Again", player, Colour ( 255, 255, 255 ) );
}
NewTimer( "NewVeh", 10000, 1);
function NewVeh()
{
Car.Del( player.Name + "Car" );
MessagePlayer( "*You may now create a new Vehicle", player, Colour ( 131, 114, 5 ) );
PlayFrontEndSound(player, 160);
}
}
}
I will also look into that plugin
Quote from: KAKAN on Mar 04, 2016, 04:17 PMhttp://forum.vc-mp.org/?topic=206.0
That may help you, though I never tested it.
Well, you can make a class exactly same to your hash class, but use a database instead of a file inside it. Hope you got me
I hope VC:MP devs could make this plugin official.
Quote from: KAKAN on Mar 04, 2016, 04:17 PMhttp://forum.vc-mp.org/?topic=206.0
That may help you, though I never tested it.
Well, you can make a class exactly same to your hash class, but use a DATABASE instead of a file inside it. Hope you got me
Database? just slightly confusing.
rwwpl might be helpful as he is a LU scripter and will possible understand what i know, and need to know. i like to script and get creative. bypass needing modules etc. im looking for examples
Quote from: ysc3839 on Mar 04, 2016, 05:01 PMQuote from: KAKAN on Mar 04, 2016, 04:17 PMhttp://forum.vc-mp.org/?topic=206.0
That may help you, though I never tested it.
Well, you can make a class exactly same to your hash class, but use a database instead of a file inside it. Hope you got me
I hope VC:MP devs could make this plugin official.
Last time I tried, that plugin didn't work for me.
Motley, you may check the wiki, the functions name are different, and their syntax too. For ex:
MessagePlayer has no Colour feature, you need to use hex code instead
Colour is RGB here
etc
Okay, Sorry KAKAN.
I have been studying these built in func on the wiki since last night,They are just taking a while to remember and get a idea with what i already know.. The scripting is a exact at a A++ Percentage. Just different built func names, that's mainly what i am trying to get/understand,
Other than that, Configure my server to a level I understand, Yet a server that is simple to update i do not want to look at it and feel like I am looking at nuclear codes . lel
Quote from: Finch Real on Mar 04, 2016, 04:26 PMmaybe this plugin will help you through hashes
hashing04rel32
This plugins was made to add support for encrypted texts SHA. SHA256 etc here is the wiki page http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions#Hashing_Functions_.28In_the_.22Hashing.22_plugin.29
Quote from: Kusanagi on Mar 04, 2016, 06:25 PMQuote from: Finch Real on Mar 04, 2016, 04:26 PMmaybe this plugin will help you through hashes
hashing04rel32
This plugins was made to add support for encrypted texts SHA. SHA256 etc here is the wiki page http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions#Hashing_Functions_.28In_the_.22Hashing.22_plugin.29
I really appreciate that, o_O Only issue is there is no text/ examples there. Looks like i will have to find out the hard way and request to upload mine as an example.
Quote from: Mr_Motley on Mar 04, 2016, 06:32 PMQuote from: Kusanagi on Mar 04, 2016, 06:25 PMQuote from: Finch Real on Mar 04, 2016, 04:26 PMmaybe this plugin will help you through hashes
hashing04rel32
This plugins was made to add support for encrypted texts SHA. SHA256 etc here is the wiki page http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions#Hashing_Functions_.28In_the_.22Hashing.22_plugin.29
I really appreciate that, o_O Only issue is there is no text/ examples there. Looks like i will have to find out the hard way and request to upload mine as an example.
I'm trying to update the wiki. Trying all the functions 1 by 1 then updating.
Quote from: KAKAN on Mar 04, 2016, 06:37 PMQuote from: Mr_Motley on Mar 04, 2016, 06:32 PMQuote from: Kusanagi on Mar 04, 2016, 06:25 PMQuote from: Finch Real on Mar 04, 2016, 04:26 PMmaybe this plugin will help you through hashes
hashing04rel32
This plugins was made to add support for encrypted texts SHA. SHA256 etc here is the wiki page http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions#Hashing_Functions_.28In_the_.22Hashing.22_plugin.29
I really appreciate that, o_O Only issue is there is no text/ examples there. Looks like i will have to find out the hard way and request to upload mine as an example.
I'm trying to update the wiki. Trying all the functions 1 by 1 then updating.
Really appreciate that thank you!!!. If there is anything i can help you with just share a function or etc.
http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions#Hashing_Functions_.28In_the_.22Hashing.22_plugin.29
Nearly done, some more 2 or 3 left. Will do it, till then, you can check the rest
Nice but By KAKAN was necessary to write there and why the page popup still says page doesnt exist
Quote from: Kusanagi on Mar 04, 2016, 07:16 PMNice but By KAKAN was necessary to write there and why the page popup still says page doesnt exist
Actually I wrote it in my 1st edit, then copy pasted to all, forgot to remove, but I don't think that's a problem :P
And to your 2nd problem, restart your browser and try, if not works, try restarting your PC. Because it works fine for me.
And also, I finished doing all those hash functions :)
Quote from: KAKAN on Mar 04, 2016, 07:18 PMAnd to your 2nd problem, restart your browser and try, if not works, try restarting your PC. Because it works fine for me.
i mean this (https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi67.tinypic.com%2F1zxs1nn.jpg&hash=d296981a5372ad27f63c048358c3ebc7f832ec28)
Edit: cleaned browser cookies now its fine
Bad browser, it shows blue to me, even the links work perfectly:-
http://imgur.com/YPVoIto
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FYPVoIto.png&hash=64e4535a325de7428e8a447fbea90f9ec0a01e43)
Thank you KAKAN!!!
So? it is more of the content strings? than creating a file database?
Quote from: Mr_Motley on Mar 04, 2016, 07:49 PMThank you KAKAN!!!
So? it is more of the content strings? than creating a file database?
Well, Hashing are generally used for Passwords, so that if a hacker gains access to your database, and takes everyone's account info, then also, he/she will not be able to know the pass.
And also, if you want to learn more about the database, then you can have a look over the MySQL functions (http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions#MySQL_Functions_.28In_the_.22MySQL.22_plugin.29). I'll soon update the SQLIte ones (http://wiki.vc-mp.org/wiki/Scripting/Squirrel/Functions#SQLite_Functions_.28In_the_.22SQLite.22_plugin.29). And also, there are some scripts available for the accounts thing, you can have a look over them. For ex: Fuzziee's Account system (http://forum.vc-mp.org/?topic=224.0). It has 2 versions. One is MySQL based, while the other one is SQLite based.
If you want to learn how to set-up a MySQL database, you're free to google, or have a look on this topic (http://forum.vc-mp.org/?topic=444.0)
I will have a look.
[Not Hating against VCMP]
I just do not really understand why there is so many plugins/modules needed for supporting scripting capabilities.
Rather irritating.
Quote from: Mr_Motley on Mar 04, 2016, 08:08 PMI just do not really understand why there is so many plugins/modules needed for supporting scripting capabilities.
That would be easier to handle and download. Putting everything into one plugin would be hard to debug and find errors.
Always the hackers that make things worse[Makes since] . :p
http://forum.vc-mp.org/?topic=1007.msg6562#msg6562
those are the style of hashes i am seeking to be able to use
You guys are mixing two things here.
The hash system Mr_Motley is talking about has nothing to do with hashing passwords. They were an old method of saving data to files in VC:MP and LU.
AdTec has ported the old functionality for 0.4: http://forum.vc-mp.org/?topic=206.0
This plugin may or may not work anymore. If not, I will see if I can recompile it to make it work for more recent server updates.
While pretty much no one uses that hash method, you are free to check it out. Although I think there's going to be more support by using the database systems linked above: SQLite and MySQL. It's just a matter of getting used to, I guess.
Quote from: Mr_Motley on Mar 04, 2016, 08:08 PMI just do not really understand why there is so many plugins/modules needed for supporting scripting capabilities.
When the server was created, we decided to keep everything aside from the core functionality of the netgame in plugins. It makes it easier to maintain the core server functionality as well as the plugins. Although some of the plugins are officially maintained by developers, it also allows the community to develop drop-in replacements and additional scripting languages as they please.
The SA:MP and LU servers also add unnecessary overhead by forcing everything to go through the Pawn and Squirrel APIs. The best example I can think of is someone had developed a plugin that allowed people to use Squirrel scripts in SA:MP, but because the only plugin API required going through the Pawn API, the performance was substantially worse than if you had just used Pawn.
Quote from: Thijn on Mar 04, 2016, 08:33 PMYou guys are mixing two things here.
The hash system Mr_Motley is talking about has nothing to do with hashing passwords. They were an old method of saving data to files in VC:MP and LU.
AdTec has ported the old functionality for 0.4: http://forum.vc-mp.org/?topic=206.0
This plugin may or may not work anymore. If not, I will see if I can recompile it to make it work for more recent server updates.
While pretty much no one uses that hash method, you are free to check it out. Although I think there's going to be more support by using the database systems linked above: SQLite and MySQL. It's just a matter of getting used to, I guess.
Yes I am extremely confused, I do not Blame KAKAN, He has gone beyond his way in every type of way to help me big KUDDOS to him.
Please is this anything like create hashes, close hashes,hsh.del, hsh.get, hsh.add, etc. if so some type of examples or really old scripts with this would be helpful [ not saying the entire script just to use as examples.
Now to create a base script to upload and to use as my own, I would extremely need that Hashing plugin!! [Even if i need to pay you real cash {Not a joke}
My scripting is a lot like Force's Thijn.
some like VRocker's as well.
I tried to Use DJ Java Decompiler 3.12, and it failed to load everything. not often that happens. only said "VM"
Quote from: Stormeus on Mar 04, 2016, 08:34 PMQuote from: Mr_Motley on Mar 04, 2016, 08:08 PMI just do not really understand why there is so many plugins/modules needed for supporting scripting capabilities.
When the server was created, we decided to keep everything aside from the core functionality of the netgame in plugins. It makes it easier to maintain the core server functionality as well as the plugins. Although some of the plugins are officially maintained by developers, it also allows the community to develop drop-in replacements and additional scripting languages as they please.
The SA:MP and LU servers also add unnecessary overhead by forcing everything to go through the Pawn and Squirrel APIs. The best example I can think of is someone had developed a plugin that allowed people to use Squirrel scripts in SA:MP, but because the only plugin API required going through the Pawn API, the performance was substantially worse than if you had just used Pawn.
This make's a lot of since, I may be wrong,
Lets say lets say VCMP developers are far to busy to fix bugs, exploits, or updates. Then someone can attempt to manually fix things and or add support depending on what that is? etc
Quote from: Mr_Motley on Mar 04, 2016, 08:53 PMQuote from: Stormeus on Mar 04, 2016, 08:34 PMQuote from: Mr_Motley on Mar 04, 2016, 08:08 PMI just do not really understand why there is so many plugins/modules needed for supporting scripting capabilities.
When the server was created, we decided to keep everything aside from the core functionality of the netgame in plugins. It makes it easier to maintain the core server functionality as well as the plugins. Although some of the plugins are officially maintained by developers, it also allows the community to develop drop-in replacements and additional scripting languages as they please.
The SA:MP and LU servers also add unnecessary overhead by forcing everything to go through the Pawn and Squirrel APIs. The best example I can think of is someone had developed a plugin that allowed people to use Squirrel scripts in SA:MP, but because the only plugin API required going through the Pawn API, the performance was substantially worse than if you had just used Pawn.
This make's a lot of since, I may be wrong,
Lets say lets say VCMP developers are far to busy to fix bugs, exploits, or updates. Then someone can attempt to manually fix things and or add support depending on what that is? etc
To an extent, yes. We still don't plan to release the source code to the client and server so bugs there would have to be handled by the dev team. However, any bugs and crashes in stuff like the Squirrel scripting core could be patched by the community. As a matter of fact, there are some community members who have contributed bugfixes to Squirrel and other plugins.
Makes since
Quote from: Thijn on Mar 04, 2016, 08:33 PMYou guys are mixing two things here.
The hash system Mr_Motley is talking about has nothing to do with hashing passwords. They were an old method of saving data to files in VC:MP and LU.
AdTec has ported the old functionality for 0.4: http://forum.vc-mp.org/?topic=206.0
This plugin may or may not work anymore. If not, I will see if I can recompile it to make it work for more recent server updates.
While pretty much no one uses that hash method, you are free to check it out. Although I think there's going to be more support by using the database systems linked above: SQLite and MySQL. It's just a matter of getting used to, I guess.
found this in the really old post
Quote from: FarisDon. on July 13, 2014, 10:03:46 pm
(1)can we uplode these hsh,SQL.dll to work it on Our new beta Version 0.4
or else it will not connect us???
Only 0.4 plugins will work with 0.4 servers. R2 plugins do not work with 0.4 servers.Quote
And Yes if i uplode these Things it will not work on the old version -.-?
No.
Quote from: S.L.C on July 13, 2014, 10:06:50 pm
Quote from: stormeus on July 13, 2014, 09:13:30 pm
Try the VS2013 runtimes.
http://www.microsoft.com/en-us/download/details.aspx?id=40784
Hmmm... same error. The game process doesn't even start :-\
Are you getting any specific errors?
I can not create a server until this is cleared. cant wait. After added support is added I will create a base script and should have it done in two weeks and release,
Cant Script without it ;p
Okay LOL NOW I think i can bypass and began my build with
ReadIniInteger( "Data/" + player.Name + ".ini", "Account", "Level" );
but i am having issues with ReadIniInteger
trying to find a module..
function Loggedin ( player, Password ) {
if ( Password ( player ) != "" )
{
if ( Account [ player.ID ].Logged == false )
{
if ( Password )
{
if ( WHIRLPOOL ( Password )
{
local Cash = ReadIniInteger( "Data/" + player.Name + ".ini", "Account", "Level" );
//etc
Please Let me know if someone beats me to finding the module.
Don't use INIs Motley. The official INI plugin is totally screwed up and has alot of deficiencies. Just don't use it. For instance the way it stores data is totally messed up. Your data might be corrupted if it involves brackets.
Use either SQLite for lower purposes and MySQL if you need a higher priority.
Quote from: Doom_Kill3R on Mar 05, 2016, 07:07 AMDon't use INIs Motley. The official INI plugin is totally screwed up and has alot of deficiencies. Just don't use it. For instance the way it stores data is totally messed up. Your data might be corrupted if it involves brackets.
Use either SQLite for lower purposes and MySQL if you need a higher priority.
And you say that the MySQL plugin is totally fine? I'm facing a lot of problems with it sometimes.
You're kinda new, you should stick to SQLite. You'll face problem if you switch to MySQL without knowing it.
Quote from: Doom_Kill3R on Mar 05, 2016, 07:07 AMDon't use INIs Motley. The official INI plugin is totally screwed up and has alot of deficiencies. Just don't use it. For instance the way it stores data is totally messed up. Your data might be corrupted if it involves brackets.
Use either SQLite for lower purposes and MySQL if you need a higher priority.
Only issue is my scripting where it stands can't handle the concept due to I don't have a understanding of it
( what i have seen i fully discourage).
I only know how to script normaly.
Was this module tested by the owner before releasing?
I would like to bug test yet stress test that module. as scripting can improve these types of issues.
If i can not get this to work out
(as nothing else has) I'll find another project else's where as my scripting capabilities keep getting limited every few posts.
There is always issues for me every turn I make. no offense...
also no offense I Refuse to not use SQLite, MySQL.
I just wanted to build a server/System/base script.
something i can call mine( unique )
This is just depressing. what's next :/
@KAKAN, MySQL plugin is totally fine unless you don't bitch with it. The only thing it lacks is that it doesn't throw errors on query errors which you have to do manually.
Quote from: Doom_Kill3R on Mar 05, 2016, 08:32 AM@KAKAN, MySQL plugin is totally fine unless you don't bitch with it. The only thing it lacks is that it doesn't throw errors on query errors which you have to do manually.
Try mysql_fetch_lengths
If it works, tell me the query you did
The code I posted saves data to a players name. Example: you register, when you register you will have what is considered an account. The file will save as your username. Giving you separate data from others. And with a timer I could have the data save one line at a time allowing the save file to save correctly. as well as weapon ammo to stay updated/saved every 5 minutes.
I am going to continue to work on my account system/base script. but i need that module as i can not find it
[The code again]
ReadIniInteger( "Data/" + player.Name + ".ini", "Account", "Level" );