15.07.2012, 22:51
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] > 0) {
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);
return 1;
} else {
SendClientMessage(playerid, Vermelho, "ID invбlido");
return 1;
}
}
}