22.07.2011, 12:00
eu queria q vcs me ajudassem com um comando q desbugasse o proprio player q digitar
ex: /medesbugar
ex: /medesbugar
PHP код:
if(strcmp(cmd, "/desbugar", true) == 0) {
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5){
new tmp[256];
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "(ERRO) Digite: /desbugar [id]");
return 1;
}
plid = strval(tmp);
if(IsPlayerConnected(plid)){
SpawnPlayer(plid);
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "(INFO) O Administrador %s (%d) desbugou o player: %s (%d)!", aname,playerid,pname,plid);
SendClientMessageToAll(tcadm, string);
jasequestro[plid]= 0;
Mute[plid]= 0;
nautlls[plid]= 0;
nobarlv[plid]= 0;
nobarls[plid]= 0;
nobarsf[plid]= 0;
nobarfc[plid]= 0;
preso[plid]= 0;
algemado[plid]= 0;
sequestro[plid]= 0;
gmod[plid]= 0;
amod[plid]= 0;
autoescola[plid]=0;
Preso[plid]= 0;
noevento[plid] = 0;
nogame[plid] = 0;
prefsf[plid]= 0;
preflv[plid]= 0;
prefls[plid]= 0;
NaFaculdade[plid] = 0;
return 1;
}else{
SendClientMessage(playerid, Vermelho, "ID invбlido");
return 1;
}
}
}