21.01.2012, 11:21
Olha cara aqui estб o comando que pedio:
pawn Код:
//NO COMEЗO DO GM
#define Branco 0xFFFFFFAA
#define Vermelho 0xFF0000AA
#define outraadm 0x33AAFFFF
//NO MEIO DO GM
if(strcmp(cmd, "/tapa", true) == 0) {
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] > 1){
new tmp[256];
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "Digite: /tapa [id]");
return 1;
}
plid = strval(tmp);
if(IsPlayerConnected(plid)){
new interiordele;
interiordele = GetPlayerInterior(plid);
SetPlayerInterior(plid, interiordele);
new Float:X, Float:Y, Float:Z;
GetPlayerPos(plid, X, Y, Z);
SetPlayerPos(plid, X, Y, Z +50);
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "[INFO] O Adminstrador %s (%d) te deu um tapa!", aname,playerid);
SendClientMessage(plid,outraadm, string);
SendClientMessage(playerid, Branco, "* Comando efetuado com sucesso!");
return 1;
}else{
SendClientMessage(playerid, Vermelho, "[ERRO] ID invбlido");
return 1;
}
}
}