12.09.2011, 10:23
Hi , i'm using the first version of Zadmin , so i like it because it is short and there are a bit of commands,
so , i find that there are not /changepass command , and i have no Idea how to do it, but this is an example of a command :
Note: Please help me to creat a short+usefull /changepass command , because I have no idea
so , i find that there are not /changepass command , and i have no Idea how to do it, but this is an example of a command :
pawn Код:
if(strcmp("/register", cmd, true) == 0)
{
new tmp[256];
tmp = strtok(cmdtext, idx);
new pname[24];
GetPlayerName(playerid, pname, sizeof(pname));
if(logged[playerid] == 1) return SendClientMessage(playerid, red, "You are already logged in, you can not Login Again !");
if(udb_Exists(pname)) return SendClientMessage(playerid, red, "This Account is already Registered.");
if(!strval(tmp)) return SendClientMessage(playerid, red, "Usage: /register [password] - your password must start with a number");
if(udb_Create(pname, tmp))
{
SendClientMessage(playerid, green, "Your account has been Succefully Registered. Please /login [YourPassword]");
dUserSetINT(PlayerName(playerid)).("level", 0);
dUserSetINT(PlayerName(playerid)).("money", GetPlayerMoney(playerid));
dUserSetINT(PlayerName(playerid)).("score", GetPlayerScore(playerid));
dUserSetINT(PlayerName(playerid)).("kills", 0);
dUserSetINT(PlayerName(playerid)).("deaths", 0);
dUserSetINT(PlayerName(playerid)).("VIP", 0);
return 1;
}
return 1;
}
Note: Please help me to creat a short+usefull /changepass command , because I have no idea