14.05.2012, 06:55
How i can create command that change password in dudb inclue
i need just the function who are change password thnx all
i need just the function who are change password thnx all
if(strcmp(cmd, "/changepass", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, "You need to login first.");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_RED, "USAGE: /changepass [new password]");
return 1;
}
strmid(PlayerInfo[playerid][pPassword], tmp, 0, strlen(cmdtext), 255);
SendClientMessage(playerid, COLOR_YELLOW, "Password has been changed successfuly");
}
return 1;
}