[Ajuda]comando
#1

eu queria q vcs me ajudassem com um comando q desbugasse o proprio player q digitar
ex: /medesbugar

PHP код:
if(strcmp(cmd"/desbugar"true) == 0) {
new 
aname[MAX_PLAYER_NAME];
GetPlayerName(playeridanameMAX_PLAYER_NAME);
format(filesizeof(file), PASTA_CONTASaname);
if(
pAdmin[playerid] == || pAdmin[playerid] == || pAdmin[playerid] == || pAdmin[playerid] == || pAdmin[playerid] == 5){
new 
tmp[256];
new 
plid;
tmp strtok(cmdtextidx);
if(!
strlen(tmp)) {
SendClientMessage(playeridVermelho"(ERRO) Digite: /desbugar [id]");
return 
1;
}
plid strval(tmp);
if(
IsPlayerConnected(plid)){
SpawnPlayer(plid);
new 
pname[MAX_PLAYER_NAME];
GetPlayerName(plidpnameMAX_PLAYER_NAME);
format(stringsizeof(string), "(INFO) O Administrador %s (%d) desbugou o player: %s (%d)!"aname,playerid,pname,plid);
SendClientMessageToAll(tcadmstring);
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(playeridVermelho"ID invбlido");
return 
1;
}
}

Reply


Messages In This Thread
[Ajuda]comando - by DrTHE - 22.07.2011, 12:00
Re: [Ajuda]comando - by ViCtOr_Mc - 22.07.2011, 13:30
Re: [Ajuda]comando - by Falcon. - 22.07.2011, 13:38
Re: [Ajuda]comando - by Shadoww5 - 22.07.2011, 16:15
Re: [Ajuda]comando - by MarcosRodrigo - 27.04.2013, 01:08

Forum Jump:


Users browsing this thread: 1 Guest(s)