funcion /register help me

Started by kennedyarz, Mar 19, 2016, 01:11 AM

Previous topic - Next topic

kennedyarz


kennedyarz


MacTavish

Boss change dofile( "fas_v3_sqlite.nut", true); to dofile( "scripts/fas_v3_sqlite.nut", true);

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

Retired VC:MP Player/Scripter :P

Mötley

Yes @Kusanagi

in your server.cfg you should also do something like this
sqgamemode scripts/Main/main.nutand in your main.nut you should do something like this
const Path = "scripts/Main/"; **maybe you already have that
^^^^
This can be repeated into different locations
Example: At this time I have been scripting inside my Main.nut only but this could be used in multiple ways
*Many ways
I could have the directory start as
const Path = "Scripts/"; **maybe you already have that
and have that script to direct the many differnt locations you will just need to make different names instead of just Path
const Path = "Scripts/Accounts/"; **and create constant paths like a folder for Accounts etc. This way i can separate the data into separate folders. Accounts/Players commands/Admin commands/many ways to separate your data. But this can be rather complex to get this correct but when achieved it is worth it!!

MacTavish

Quote from: Mr_Motley on Mar 22, 2016, 05:45 PMYes @Kusanagi

in your server.cfg you should also do something like this
sqgamemode scripts/Main/main.nutand in your main.nut you should do something like this
const Path = "scripts/Main/"; **maybe you already have that
^^^^
This can be repeated into different locations
Example: At this time I have been scripting inside my Main.nut only but this could be used in multiple ways
*Many ways
I could have the directory start as
const Path = "Scripts/"; **maybe you already have that
and have that script to direct the many differnt locations you will just need to make different names instead of just Path
const Path = "Scripts/Accounts/"; **and create constant paths like a folder for Accounts etc. This way i can separate the data into separate folders. Accounts/Players commands/Admin commands/many ways to separate your data. But this can be rather complex to get this correct but when achieved it is worth it!!

His main.nut location is fine except that fuzzies

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

Retired VC:MP Player/Scripter :P

kennedyarz

not help online script no load

kennedyarz

who could pass me the program to store account information

Mötley

http://forum.vc-mp.org/?topic=332.msg1922#msg1922

download that server there is a browser inside. It is missing the .dll type the name of the missing .dll and find it on a web-search and download it and add it in the same folder.

Also this is a good script as I have been studying it. so maybe you could combine your work with this server or just use it as examples.

Hope this is helpful

Thijn

Quote from: Mr_Motley on Mar 23, 2016, 10:16 PMdownload that server there is a browser inside. It is missing the .dll type the name of the missing .dll and find it on a web-search and download it and add it in the same folder.
Seriously, don't do this. If you're missing DLL files install the right redistributable.

Mötley

I just pointed out something I found on this site. I don't know much about the language he is learning and there really isn't any resources on this site as to where to get a browser so I attempted to help as no one will probably respond with an actual browser download,

Just attempting to help quickly

kennedyarz

ya resuelto, lo que quiero ahora es saber como hacer para que cuando un jugador entre se mantenga freezado y con los comandos bloqueados para que a este solo se le permita hacer la accion ya sea registradose o loggeando en el servidor.

Mötley

Para lograr esto se necesita para conseguir la correcta construida en funciones como la función spawnscreen y crear un local de su función de inicio de sesión. decir quizá locales conectados = (alguna función de inicio de sesión de la suya);

entonces

if (!registrada) MessagePlayer ("Debe hacer login / registro) return 0;
Aparte de eso me beleave que lo es.
 :)

kennedyarz

expliquese mejor, no le entiendo. si estoy pidiendo esa parte alguno me podria mejor pasar esa funcion porque entonces para que lo publico? no me ayuda con eso.

Mötley

#43
Try something like this

**Untested

function onPlayerRequestClass( Player, classID, skin, team )
{
//Register needs to be you register read
//Logged needs to be you login read
local Register = Register( Player ), Logged = Logged( Player );

//Hear we will force a player to login or register
if ( ( !Register ) && ( !Logged ) ) MessagePlayer("You must login/register") return 0;
eles if ( ( Register ) && ( Logged ) ) && (!Player.Spawned) Player.Spawn();
}

Xmair

You're checking if the player is spawned on player class....

Credits to Boystang!

VU Full Member | VCDC 6 Coordinator & Scripter | EG A/D Contributor | Developer of VCCNR | Developer of KTB | Ex-Scripter of EAD