03.09.2010, 18:57
sei que vc nгo tento pq vc nao sabe =D
pawn Код:
if (strcmp(cmd,"/MudarSenha",true) ==0 )
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pVIP] > 1)
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid,CINZA,"Vocк nгo estб Registrado !");
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,CINZA1,"Use: /MudarSenha [Nova Senha]");
return 1;
}
strmid(tmppass,tmp,0,strlen(cmdtext),255);
Encrypt(tmppass);
OnPlayerRegister(playerid,tmppass);
}
return 1;
}
}