SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Tutorials (https://forum.sa-mp.com/forumdisplay.php?f=70)
-   -   [Tutorial] Login and Register System - Dialogs - Using Y_INI (https://forum.sa-mp.com/showthread.php?t=273088)

Divyanshu 20/03/2018 06:39 PM

Re: Login and Register System - Dialogs - Using Y_INI
 
How to download i cant download YSI form github it only show video

GeorgeLimit 16/04/2018 05:52 AM

Re: Login and Register System - Dialogs - Using Y_INI
 
How to set player score in game and Admin level in game?

ProScripter 16/04/2018 09:58 AM

Re: Login and Register System - Dialogs - Using Y_INI
 
Quote:

Originally Posted by GeorgeLimit (Post 4012284)
How to set player score in game and Admin level in game?

that is only login/register system not admin system
but here you can use this commands for your server to set yourself admin okaY.
PHP Code:

CMD:setadmin(playeridparams[])
{
 new 
idlevelname[25], gname[25];
 if(
sscanf(params"dd"idlevel)) return SendClientMessage(playerid0xFF000050"Usage: /setadmin [playerid] [level]");
 if(
level || level 0) return SendClientMessage(playerid0xFF000050"Invalid Admin Level.");
 if(!
IsPlayerConnected(id)) return SendClientMessage(playerid0xFF000050"Player isnot connected");
 
GetPlayerName(playeridnamesizeof(name));
 
GetPlayerName(idgnamesizeof(gname));
 
PlayerInfo[id][pAdmin] = level;
 
format(stringsizeof(string), "%s have setted you as %d level admin"namelevel);
 
SendClientMessage(id0xFF0000AAstring);
 
format(stringsizeof(string), "You have setted %s as %d level admin"gnamelevel);
 
SendClientMessage(playerid0xFF0000AAstring);
 return 
1;
}
CMD:setscore(playeridparams[])
{
 new 
idscorename[25], gname[25];
 if(
sscanf(params"dd"idscore)) return SendClientMessage(playerid0xFF000050"Usage: /setscore [playerid] [score]");
 if(
score 9999999 || score 0) return SendClientMessage(playerid0xFF000050"Invalid Scores.");
 if(!
IsPlayerConnected(id)) return SendClientMessage(playerid0xFF000050"Player isnot connected");
 
GetPlayerName(playeridnamesizeof(name));
 
GetPlayerName(idgnamesizeof(gname));
 
SetPlayerScore(idscore);
 
format(stringsizeof(string), "%s have setted your score to %d."namescore);
 
SendClientMessage(id0xFF0000AAstring);
 
format(stringsizeof(string), "You have setted %s scores to %d."gnamescore);
 
SendClientMessage(playerid0xFF0000AAstring);
 return 
1;



PlayHard 04/05/2018 03:15 AM

Re: Login and Register System - Dialogs - Using Y_INI
 
Quote:

Originally Posted by Mitchyjones (Post 3747950)
Still waiting ^

Same here dear

CrystalGamer 04/05/2018 10:54 AM

Re: Login and Register System - Dialogs - Using Y_INI
 
replace this

PHP Code:

//////onplayerconnect///
LoadUser_%s
to 
LoadUser_data 


KamilPolska 22/09/2018 08:18 PM

Re: Login and Register System - Dialogs - Using Y_INI
 
How to do it without hash?
E.g. Enter the password: 123456 and you must save the password 123456

v1k1nG 22/09/2018 08:33 PM

Re: Login and Register System - Dialogs - Using Y_INI
 
Quote:

Originally Posted by KamilPolska (Post 4053974)
How to do it without hash?
E.g. Enter the password: 123456 and you must save the password 123456

Please never do it

Susenkus 13/03/2019 05:36 PM

Re: Login and Register System - Dialogs - Using Y_INI
 
Can someone help pls, how do do it that instead displaying actual pass it will display ****** you what i mean
and how to save weapons

Awkward 20/06/2019 02:19 PM

Re: Login and Register System - Dialogs - Using Y_INI
 
Great tutorial!

But since I'm quite new to all this stuff..
Could you explain how I can save player skin, position, vehicles etc ?
I don't understand in wich part of the code it saves stuff.

Nitrofuel786 21/06/2019 02:42 AM

Re: Login and Register System - Dialogs - Using Y_INI
 
It doesnt save anything in my INI file. Where do I have to put step 7 and 8 in?


All times are GMT. The time now is 12:40 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.