Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

Entrar

description2 Codes VIP/FakeBan By: Famous Empty2 Codes VIP/FakeBan By: Famous

more_horiz
Olá Galera bem.. Realmente não e um FS um Code para imbuti no Seu Gm..

Cmd /fakeban [ID] [Motivo] , oq ele faz? e tipo um Fake Banimento em um Player aparecer que o Player Foi Banido Menssagen ingual um Banimento mais a Verdade foi uma Pegadinha do Malandro. OBS: Ele não e Kickado/Banido , So um Susto mesmo. Simples Tava sem nada para fazer.. Táe.

Código:

if(strcmp(cmd, "/fakeban", true) == 0) {
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(pAdmin[playerid] == 5){
new tmp[256];
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "Digite: /fakeban [id] [motivo]");
return 1;
}
plid = strval(tmp);
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file2, sizeof(file2), PASTA_CONTAS, pname);
if(IsPlayerConnected(plid)){
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' ')) {
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) {
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, Vermelho, "(ERRO) Você só pode fake banir com uma razão apropriada.");
}else{
format(string, sizeof(string), "Você fakebaniu o jogador %s.", pname);
SendClientMessage(playerid, tcadm, string);
SendClientMessage(plid, 0x80FF00AA, "Para rever seu ban, aperte F8 e tire um Screenshot.");
GameTextForPlayer(plid,"~r~banido", 2500, 3);
format(string, sizeof(string), "* O Administrador %s baniu o jogador: %s (Motivo: %s)", aname,pname,result);
SendClientMessageToAll(Vermelho, string);
format(string, sizeof(string), " %s (%d) saiu do server ( Kickado / Banido ).", pname,plid);
SendClientMessageToAll(0xA8A8A8AA, string);
SendClientMessage(plid, 0xDFDFDFAA, "Server closed the connection.");
}
}else{
format(string, sizeof(string), "(ERRO) ID %d não é valido!", plid);
SendClientMessage(playerid, Vermelho, string);
}
}
return 1;
}


OBS: Esse Sistema foi Criado para meu Gm, pois Level de Adm e 1 - 5 , então fiz so para 5 if(pAdmin[playerid] == 5){ , Cazo o seu Seja de Leveis altos.. que não mecho com esses Tipos de gm , vc pode Coloca outros tipos de Level de Admin.

Sistema de Vip Completo.

Código:

if(strcmp(cmd, "/darvip", true) == 0) {
if(!IsPlayerAdmin(playerid)) return 0;
new tmp[256];
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, 0x008040AA, "(ERRO) Use: /darvip [id].");
return 1;
}
plid = strval(tmp);
if(IsPlayerConnected(plid)){
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file2, sizeof(file2), PASTA_CONTAS, pname);
dini_IntSet(file2, "VIP",1);
SpawnPlayer(plid);
SendClientMessage(playerid, 0x00FF00AA, "(INFO) VIP Setado com sucesso");
SendClientMessage(plid, 0x00FF00AA, "(INFO) Um admin setou VIP para você aproveite ;D. Use /cmdsvip , Para VER Seus Comandos Especiais!");
return 1;
}else{
SendClientMessage(playerid, Vermelho, "(ERRO) ID inválido");
return 1;
}
}



if(strcmp(cmd, "/tirarvip", true) == 0) {
if(!IsPlayerAdmin(playerid)) return 0;
new tmp[256];
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, 0x008040AA, "(ERRO) Use: /tirarvip [id].");
return 1;
}
plid = strval(tmp);
if(IsPlayerConnected(plid)){
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(file2, sizeof(file2), PASTA_CONTAS, pname);
dini_IntSet(file2, "VIP",0);
SpawnPlayer(plid);
SendClientMessage(playerid, 0x00FF00AA, "(INFO) VIP Tirado com sucesso");
SendClientMessage(plid, 0x00FF00AA, "(INFO) Um admin tirou VIP de você ;( ");
return 1;
}else{
SendClientMessage(playerid, Vermelho, "(ERRO) ID inválido");
return 1;
}
}

if(strcmp("/cmdsvip", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, credit, DIALOG_STYLE_MSGBOX, "Info VIP, Criador: Famous", "» Atenção: Seja um bom vip ou perdera ele!! \n» /coletev [ID] Colete Vip  \n» /irv [ID] Para ir eim aulgum jogador \n» /armasvip -> Para pegar armas vip \n» /cnnv -> Para anunciar no meio da tela \n» /eusouviph -> asume ser vip homem \n» /eusouvipm -> asume ser vip mulher \n» /eusouvip -> asume ser vip TOP \n» Em Breve Mais!, ", "OK", "SAIR");
return 1;
}


if(strcmp(cmdtext, "/armasvip", true) == 0) {
if(vip[playerid] == 0){
SendClientMessage(playerid, 0xFFFF00AA, "(ERRO) Você nao é um player VIP!");
return 1;
}
if(vip[playerid] == 1){
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 9, 1);
GivePlayerWeapon(playerid, 18, 999999);
GivePlayerWeapon(playerid, 26, 999999);
GivePlayerWeapon(playerid, 28, 999999);
GivePlayerWeapon(playerid, 24, 999999);
GivePlayerWeapon(playerid, 31, 999999);
GivePlayerWeapon(playerid, 34, 999999);
}
return 1;
}


if(strcmp(cmd, "/irv", true) == 0) {
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(vip[playerid] == 1){
new tmp[256];
new plid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "(ERRO) Digite: /irv [id]");
return 1;
}
plid = strval(tmp);
if(IsPlayerConnected(plid)){
new interiordele;
interiordele = GetPlayerInterior(plid);
SetPlayerInterior(playerid, interiordele);
new Float:X, Float:Y, Float:Z;
GetPlayerPos(plid, X, Y, Z);
SetPlayerPos(playerid, X, Y, Z);
{
new VehicleID;
VehicleID = GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,X+1,Y+1,Z);
PutPlayerInVehicle(playerid,VehicleID,0);
}
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "[INFO]O player vip %s (%d) foi até sua posição!", aname,playerid);
SendClientMessage(plid,Amarelo, string);
return 1;
}else{
SendClientMessage(playerid, Vermelho, "(ERRO)ID inválido");
return 1;
}
}
}

if(strcmp(cmd, "/cnnv", true) == 0)
{
   if(vip[playerid] == 0)
   {
      SendClientMessage(playerid, Vermelho, "(ERRO) Você nao é um player VIP!");
      return 1;
   }
   if(vip[playerid] == 1)
   {
      new aname[MAX_PLAYER_NAME];
      GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
      format(file, sizeof(file), PASTA_CONTAS, aname);
      new tmp[256];
      tmp = strtok(cmdtext, idx);
      if (!strlen(tmp))
      {
         SendClientMessage(playerid, Vermelho, "Digite: /cnnv [texto]");
         return 1;
      }
      if(PlayerInfo[playerid][Logged] == 1)
      {
         if(vip[playerid] == 1 || pAdmin[playerid] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5)
         {
            format(string, sizeof(string), "~b~Vip:~y~%s~r~: ~w~%s", aname, tmp);
            GameTextForAll(string, 5000, 3);
         }
         else
         {
            SendClientMessage(playerid, Vermelho, "(ERRO) Você não tem permissão para usar este comando!");
         }
      }
      else
      {
         SendClientMessage(playerid, Vermelho, "(ERRO) Você tem que estar logado para usar este comando!");
      }
      return 1;
   }
}

if(strcmp(cmdtext, "/eusouvip", true) == 0){
if(vip[playerid] == 0){
SendClientMessage(playerid, 0xFFFF00AA, "(ERRO) Você nao é um Player VIP!");
return 1;
}
if(vip[playerid] == 1){
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "Eu %s sou 'Vip do BVN (TOP)' então me chupa", pname);
SendClientMessageToAll(Amarelo, string);
return 1;
}
}

if(strcmp(cmdtext, "/eusouviph", true) == 0){
if(vip[playerid] == 0){
SendClientMessage(playerid, 0xFFFF00AA, "(ERRO) Você nao é um player VIP!");
return 1;
}
if(vip[playerid] == 1){
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "Eu %s sou 'VIP' então me chupa", pname);
SendClientMessageToAll(roxo, string);
return 1;
}
}

if(strcmp(cmdtext, "/eusouvipm", true) == 0){
if(vip[playerid] == 0){
SendClientMessage(playerid, 0xFFFF00AA, "(ERRO) Você nao é um player VIP!");
return 1;
}
if(vip[playerid] == 1){
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "Eu %s sou 'VIP' então Lambe", pname);
SendClientMessageToAll(roxo, string);
return 1;
}
}

if(strcmp(cmd,"/coletev", true)==0)
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
format(file, sizeof(file), PASTA_CONTAS, aname);
if(vip[playerid] == 1){
new tmp[256];
new plid, colete;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)){
SendClientMessage(playerid, Vermelho, "Digite: /coletev [id] [vida]");
return 1;
}
plid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, Vermelho, "Digite: /coletev [id] [vida]");
return 1;
}
colete = strval(tmp);
if(colete < 0 || colete > 100)
{
SendClientMessage(playerid,Vermelho,"(ERRO) Quantidade inválida!");
return 1;
}
if(IsPlayerConnected(plid)){
SendClientMessage(playerid, Verde, "(INFO) Comando efetuado com sucesso!");
new pname[MAX_PLAYER_NAME];
GetPlayerName(plid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "(INFO) %s (%d) alterou seu colete para: %d", aname,playerid,colete);
SendClientMessage(plid,tcadm, string);
SetPlayerArmour(plid,colete);
return 1;
}else{
SendClientMessage(playerid, Vermelho, "(ERRO) Jogador não conectado.");
return 1;
}
}
}

if(strcmp(cmdtext, "/vips", true) == 0){
SendClientMessage(playerid,0x008000AA,"=== Players VIP Online ===");
new Jogador[24];
new count = 0;
new msg[120];
for(new i=0; i<MAX_PLAYERS; i++){
if(IsPlayerConnected(i) && vip[i]){
GetPlayerName(i,Jogador,24);
format(msg,sizeof(msg),"» %s (ID: %d)", Jogador,i);
SendClientMessage(playerid, 0x0088CAAA, msg);
count++;
}
}
if(count == 0){
SendClientMessage(playerid, 0xFF0000AA, "(ERRO) Nenhum player VIP está online no momento!");
}
return 1;
}

if(strcmp("/creditosvip", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, credit, DIALOG_STYLE_MSGBOX, "Creditos VIP", "Criador: Famous \n Equipe FusioN", "OK", "SAIR");
return 1;
}


OBS: Ser for Coloca no Seu Gm Retire o Seu Sistema de VIP Todinho. para não da (ERROS).

Creditos: Famous

description2 Codes VIP/FakeBan By: Famous EmptyRe: 2 Codes VIP/FakeBan By: Famous

more_horiz
UP !

O /fakeban é pura sacanagem, é simples, mas foi bem feito ^^
O sistema VIP é fácil de achar desbugado... alguém pode testar? Smile

description2 Codes VIP/FakeBan By: Famous EmptyRe: 2 Codes VIP/FakeBan By: Famous

more_horiz
Ele está Desbugado, Completamente Funfando..
Criei para meu Gm.

description2 Codes VIP/FakeBan By: Famous EmptyRe: 2 Codes VIP/FakeBan By: Famous

more_horiz
o fakeban eu achei ó perca de tempo..pra q fingir um ban,,nada ver.. mas vlw por pstar Smile

description2 Codes VIP/FakeBan By: Famous EmptyRe: 2 Codes VIP/FakeBan By: Famous

more_horiz
Vey tava sem fazer D:
então resolvi de fazer esse cmd pros chatos do meu sv..
da um susto etc. e Compatilhei com vocés. Isso foi Rapidz fiz.. em 9 Min. algo asim.

description2 Codes VIP/FakeBan By: Famous EmptyRe: 2 Codes VIP/FakeBan By: Famous

more_horiz
Fake ban eu acho legal, gosto de curti com a cara dos outros. Razz

9/10

Esse VIP eu acho que tá BASTANTE bugado. Onde estão as variáveis? :s E quando o jogador for conectar, como o servidor vai pegar as informações dele no arquivo .ini e salvar na variável, se é que você criou

Código:

pAdmin[playerid] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5

Cara, tu podia simplificar mais isso:

Código:

pAdmin[playerid] > 0 && pAdmin[playerid] < 6


4/10

Tu parece ser um cara disposto, a gente tem que trabalhar isso em ti. Tenta simplificar mais teus codigos, atente para as variáveis e outros detalhes. Teste seus códigos antes de compartilhá-los. Very Happy

Última edição por RodneyFrancalim em Ter 16 Out 2012, 13:31, editado 1 vez(es)

description2 Codes VIP/FakeBan By: Famous EmptyRe: 2 Codes VIP/FakeBan By: Famous

more_horiz

Código:

if(vip[playerid] == 1 || pAdmin[playerid] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5)

mano isso aki é bem mais simples do q vc ta pensando...
tenta assim...

Código:

if(vip[playerid] == 1 || pAdmin[playerid] >= 1 && pAdmin[playerid] <= 5)

description2 Codes VIP/FakeBan By: Famous EmptyRe: 2 Codes VIP/FakeBan By: Famous

more_horiz
ixi, esqueci de substituir os operadores. Editei lá pra não ter qualquer confusão. Very Happy

description2 Codes VIP/FakeBan By: Famous EmptyRe: 2 Codes VIP/FakeBan By: Famous

more_horiz
RodneyFrancalim escreveu:
ixi, esqueci de substituir os operadores. Editei lá pra não ter qualquer confusão. Very Happy


vc tinha liberado o comando para todos no server xD

description2 Codes VIP/FakeBan By: Famous EmptyRe: 2 Codes VIP/FakeBan By: Famous

more_horiz
privacy_tip Permissões neste sub-fórum
Não podes responder a tópicos
power_settings_newInicie sessão para responder