Some Directions would be Liked

Started by Mötley, Mar 04, 2016, 03:57 PM

Previous topic - Next topic

Mötley

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

KAKAN

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
oh no

Finch Real

maybe this plugin will help you through hashes
hashing04rel32
My Snipet Showroom

http://pastebin.com/5KKuU5cg

Mötley

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

ysc3839

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.

Mötley

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

KAKAN

Quote from: ysc3839 on Mar 04, 2016, 05:01 PM
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.
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
oh no

Mötley

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


 

MacTavish

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

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Mötley

Quote from: Kusanagi on Mar 04, 2016, 06:25 PM
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

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.

KAKAN

Quote from: Mr_Motley on Mar 04, 2016, 06:32 PM
Quote from: Kusanagi on Mar 04, 2016, 06:25 PM
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

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.
oh no

Mötley

Quote from: KAKAN on Mar 04, 2016, 06:37 PM
Quote from: Mr_Motley on Mar 04, 2016, 06:32 PM
Quote from: Kusanagi on Mar 04, 2016, 06:25 PM
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

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.

KAKAN

oh no

MacTavish

Nice but By KAKAN was necessary to write there and why the page popup still says page doesnt exist

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

KAKAN

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 :)
oh no