22.10.2012, 01:54
eu quero um comando q reseta o player mais nao deleta a conta
Mais sim deletar A org admin e lider nao resetar a conta toda ajuda ai alguem mais experient e, rpg mais Rp pra tu
code do rg do player
Mais sim deletar A org admin e lider nao resetar a conta toda ajuda ai alguem mais experient e, rpg mais Rp pra tu
code do rg do player
Код:
Key=cckoMNNL Level=2 AdminLevel=0 DonateRank=0 UpgradePoints=0 ConnectedTime=0 Registered=1 Sex=1 Age=0 Origin=1 Muted=0 Respect=0 Money=5000 Bank=500 Crimes=0 Kills=-1 Deaths=0 Arrested=0 WantedDeaths=0 Phone=0 Mask=0 Phonebook=0 LottoNr=0 Fishes=0 BiggestFish=0 Job=0 Paycheck=0 HeadValue=0 Jailed=0 JailTime=0 Materials=0 Drugs=0 Leader=0 Member=0 FMember=255 Rank=0 Char=23 ContractTime=0 DetSkill=0 SexSkill=0 BoxSkill=0 LawSkill=0 MechSkill=0 JackSkill=0 CarSkill=0 NewsSkill=0 DrugsSkill=0 CookSkill=0 FishSkill=0 pSHealth=0.0 pHealth=98.0 Int=0 InvWeapon=0 InvAmmo=0 Local=255 Team=3 Model=0 PhoneNr=1879 House=255 Bizz=255 Pos_x=1775.0 Pos_y=-1938.1 Pos_z=13.5 CarLic=0 FlyLic=0 BoatLic=0 FishLic=0 GunLic=0 Gun1=0 Gun2=0 Gun3=0 Gun4=0 Ammo1=0 Ammo2=0 Ammo3=0 Ammo4=0 Crimes=0 CarTime=0 PayDay=0 PayDayHad=0 CDPlayer=0 Wins=0 Loses=0 AlcoholPerk=0 DrugPerk=0 MiserPerk=0 PainPerk=0 TraderPerk=0 Tutorial=0 Warnings=0 Adjustable=0 Fuel=0 Married=0 MarriedTo=Nenhuma Dollar=20000 LU=14/10/2012/23/30/8 ControleRemoto=
PHP код:
if (strcmp(cmd, "/resetarconta", true)==0)
{
if((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >=3)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "USE: /resetarconta [Nome_Sobrenome]");
return 1;
}
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(giveplayer));
format(string, 256, "[ADMIN]: %s resetou a conta de %s", sendername, tmp);
ABroadCast(COLOR_YELLOW,string,1);
format(string, 256, "[ADMIN]: %s resetou a conta de %s", sendername, tmp);
printf(string);
format(string,sizeof(string),"Players/%s.ini",tmp);
fremove(string);
SendClientMessage(playerid, COLOR_WHITE, "Player resetado");
SendRconCommand(string);
SendRconCommand("reloadbans");
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
}
return 1;
}