- 0
Ma puteti ajuta cu ceva ,va rog mult !
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
DhaNNy
Am de ex
[pawn]if (strcmp(cmd, "/newpass", true) ==0 )
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s.ini", sendername);
new tmppass[64];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /newpass [newpassword]");
return 1;
}
strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
Encrypt(tmppass);
OnPlayerChangePass(playerid,tmppass);
}
return 1;
}[/pawn]
Cum as putea baga ,un dialog ,de exp cand dai /newpass ,sa-ti apara o patratica unde sa scrii parola cea noua si cand dai enter sa se schimbe ,gen :
Daca puteti ,sa-mi puneti voi in comanda /newpass ,care am lasat-o mai sus un dialog dinasta.
10 answers to this question
Recommended Posts