01.02.2018, 19:26
Boa noite galera.
Й o seguinte, estou com um problema no comando /jetpack, ele estб liberado apenas para Policia e Mafia, e quero libera-lo para VIPS + (Admins), e quando retiro o a linha em que libera para as profissхes no comando, e coloco a linha para VIPS+, quando uso o /comando in game, da kick. Isso provavelmente й do Ant Hack. Podem me ajudar e ajustar o ant hack liberar o jetpack para VIPS e ADMINS?
Lembrando, VIP й Level 1.
Codigos:
Ant Hack:
if (APlayerData[playerid][PlayerClass]!= ClassPolice && APlayerData[playerid][PlayerClass] != ClassMafia){
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK && GetPlayerVirtualWorld(playerid)==0)
{
new pname[24]; GetPlayerName(playerid, pname, sizeof(pname));
format(mensagens, sizeof(mensagens), "{FF0000}| {33AA33}STAFF {FF0000}| {9400D3}%s (id:%i) foi kickado pelo ADMIN BOT. [Motivo: Jetpack]", pname, playerid);
SendClientMessageToAll(0xFF0000AA, mensagens);
Kick(playerid);
WriteLog("Ban.log", mensagens);
}
Comando:
CMD:jetpack(playerid, params[])
{
if(CallRemoteFunction("PegarLevelNovo","i",playeri d) < 1) return SendClientMessage(playerid, -1, "{FF0000}[INVALIDO] {FFFFFF}Apenas vips tem acesso ao jetpack! {FF0000}/VIP");
if(PlayerInfo[playerid][NoEvento] == 1) return SendClientMessage(playerid, -1, "{FF0000}[INVALIDO] {FFFFFF}Vocк nгo pode usar esse comando em um evento.");
if(Joined[playerid] != false) return SendClientMessage(playerid, -1, "{FF0000}[INVALIDO] {FFFFFF}Vocк nгo pode usar este comando dentro de uma corrida.");
if(!IsPlayerSpawned(playerid)) return SendClientMessage(playerid, -1, "{FF0000}[INVALIDO] {FFFFFF}Vocк nгo nasceu.");
if(TaNaPrisao[playerid] == 1) return SendClientMessage(playerid, -1, "{FF0000}[INVALIDO] {FFFFFF}Vocк nгo pode usar este comando na cadeia!");
if( Minigamer_{ playerid } != false ) return SendClientMessage( playerid, -1, "{FF0000}[INVALIDO] {FFFFFF}Vocк nгo pode fazer isso dentro do Minigame." );
new string[90],pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "{2E8B57}O Player {3CB371}%s {2E8B57}acaba de criar um jetpack!", pname);
SendClientMessageToAll(-1, string);
SetPlayerSpecialAction(playerid, 2);
return 1;
}
Й o seguinte, estou com um problema no comando /jetpack, ele estб liberado apenas para Policia e Mafia, e quero libera-lo para VIPS + (Admins), e quando retiro o a linha em que libera para as profissхes no comando, e coloco a linha para VIPS+, quando uso o /comando in game, da kick. Isso provavelmente й do Ant Hack. Podem me ajudar e ajustar o ant hack liberar o jetpack para VIPS e ADMINS?
Lembrando, VIP й Level 1.
Codigos:
Ant Hack:
if (APlayerData[playerid][PlayerClass]!= ClassPolice && APlayerData[playerid][PlayerClass] != ClassMafia){
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK && GetPlayerVirtualWorld(playerid)==0)
{
new pname[24]; GetPlayerName(playerid, pname, sizeof(pname));
format(mensagens, sizeof(mensagens), "{FF0000}| {33AA33}STAFF {FF0000}| {9400D3}%s (id:%i) foi kickado pelo ADMIN BOT. [Motivo: Jetpack]", pname, playerid);
SendClientMessageToAll(0xFF0000AA, mensagens);
Kick(playerid);
WriteLog("Ban.log", mensagens);
}
Comando:
CMD:jetpack(playerid, params[])
{
if(CallRemoteFunction("PegarLevelNovo","i",playeri d) < 1) return SendClientMessage(playerid, -1, "{FF0000}[INVALIDO] {FFFFFF}Apenas vips tem acesso ao jetpack! {FF0000}/VIP");
if(PlayerInfo[playerid][NoEvento] == 1) return SendClientMessage(playerid, -1, "{FF0000}[INVALIDO] {FFFFFF}Vocк nгo pode usar esse comando em um evento.");
if(Joined[playerid] != false) return SendClientMessage(playerid, -1, "{FF0000}[INVALIDO] {FFFFFF}Vocк nгo pode usar este comando dentro de uma corrida.");
if(!IsPlayerSpawned(playerid)) return SendClientMessage(playerid, -1, "{FF0000}[INVALIDO] {FFFFFF}Vocк nгo nasceu.");
if(TaNaPrisao[playerid] == 1) return SendClientMessage(playerid, -1, "{FF0000}[INVALIDO] {FFFFFF}Vocк nгo pode usar este comando na cadeia!");
if( Minigamer_{ playerid } != false ) return SendClientMessage( playerid, -1, "{FF0000}[INVALIDO] {FFFFFF}Vocк nгo pode fazer isso dentro do Minigame." );
new string[90],pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "{2E8B57}O Player {3CB371}%s {2E8B57}acaba de criar um jetpack!", pname);
SendClientMessageToAll(-1, string);
SetPlayerSpecialAction(playerid, 2);
return 1;
}