[ajuda]Sistema vip
#1

pessoal uso o gm BSL

quero saber como fasso pra quando os vip dar /relato veim assim


Vip ouro Marlon_Lima realatou: na cor amarela
Vip prata : cor prarta
bronde: bronse

procurei no search e n achei
Reply
#2

Mande seu /relatorio por completo.
Reply
#3

Quote:

if(strcmp(cmd,"/relato",true) ==0 || strcmp(cmd,"/re",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, COLOR_RED, "[Fail] Vocк foi mutado por um admin, nгo pode falar.");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
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, COLOR_GRAD2, "USO: /relato [texto]");
return 1;
}
if(ReduceTime[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк precisa esperar 3 segundos para usar esse comando denovo !");
return 1;
}
SendClientMessage(playerid, COLOR_YELLOW, "[BSL] Relatуrio enviado para os administradores.");
format(string, sizeof(string), "[Relato] %s(%d) relatou: %s", sendername,playerid, (result));
ABroadCast(COLOR_KICKBAN,string,1);
format(string, sizeof(string), "[Relato] %s(%d) relatou: %s", sendername,playerid, (result));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
ReduceTime[playerid] = 1;
SetTimerEx("ReduceTimer", 3000, false, "i", playerid);
}
return 1;
}

pow vlw ai amigгo
Reply
#4

Qual o sistema de VIPS que vocк usa?? pDonateRank, pVip? ou algo do tipo?
Enfim.

Usei PlayerInfo[playerid][pVip] como exemplo mas vocк pode mudar se quiser...

pawn Код:
if(strcmp(cmd,"/relato",true) ==0 || strcmp(cmd,"/re",true)==0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pMuted] == 1)
            {
                SendClientMessage(playerid, COLOR_RED, "[Fail] Vocк foi mutado por um admin, nгo pode falar.");
                return 1;
            }
            GetPlayerName(playerid, sendername, sizeof(sendername));
            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, COLOR_GRAD2, "USO: /relato [texto]");
                return 1;
            }
            if(ReduceTime[playerid] == 1)
            {
                SendClientMessage(playerid, COLOR_GREY, " Vocк precisa esperar 3 segundos para usar esse comando denovo !");
                return 1;
            }
            if(PlayerInfo[playerid][pVip] == 1)
            {
                SendClientMessage(playerid, COLOR_YELLOW, "[BSL] Relatуrio enviado para os administradores.");
                format(string, sizeof(string), "Vip Bronze %s(%d) relatou: %s", sendername,playerid, (result));
                ABroadCast(/*coloca aqui a cor que quiser*/,string,1);
                format(string, sizeof(string), "Vip Bronze %s(%d) relatou: %s", sendername,playerid, (result));
                SendClientMessage(playerid, /*coloca aqui a cor que quiser*/, string);
                ReduceTime[playerid] = 1;
                SetTimerEx("ReduceTimer", 3000, false, "i", playerid);
                return 1;
            }
            else if(PlayerInfo[playerid][pVip] == 2)
            {
                SendClientMessage(playerid, COLOR_YELLOW, "[BSL] Relatуrio enviado para os administradores.");
                format(string, sizeof(string), "Vip Prata %s(%d) relatou: %s", sendername,playerid, (result));
                ABroadCast(/*coloca aqui a cor que quiser*/,string,1);
                format(string, sizeof(string), "Vip Prata %s(%d) relatou: %s", sendername,playerid, (result));
                SendClientMessage(playerid, /*coloca aqui a cor que quiser*/, string);
                ReduceTime[playerid] = 1;
                SetTimerEx("ReduceTimer", 3000, false, "i", playerid);
                return 1;
            }
            else if(PlayerInfo[playerid][pVip] == 3)
            {
                SendClientMessage(playerid, COLOR_YELLOW, "[BSL] Relatуrio enviado para os administradores.");
                format(string, sizeof(string), "Vip Ouro %s(%d) relatou: %s", sendername,playerid, (result));
                ABroadCast(/*coloca aqui a cor que quiser*/,string,1);
                format(string, sizeof(string), "Vip Ouro %s(%d) relatou: %s", sendername,playerid, (result));
                SendClientMessage(playerid, /*coloca aqui a cor que quiser*/, string);
                ReduceTime[playerid] = 1;
                SetTimerEx("ReduceTimer", 3000, false, "i", playerid);
                return 1;
            }
            SendClientMessage(playerid, COLOR_YELLOW, "[BSL] Relatуrio enviado para os administradores.");
            format(string, sizeof(string), "[Relato] %s(%d) relatou: %s", sendername,playerid, (result));
            ABroadCast(COLOR_KICKBAN,string,1);
            format(string, sizeof(string), "[Relato] %s(%d) relatou: %s", sendername,playerid, (result));
            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
            ReduceTime[playerid] = 1;
            SetTimerEx("ReduceTimer", 3000, false, "i", playerid);
            return 1;
    }
й bom comeзar identar seus cуdigos, por que pelo que percebi seu cуdigo nгo estб nada identado =D, boa sorte.(como se eu acreditasse em sorte) shaushua
Reply
#5

pawn Код:
if(strcmp(cmd,"/relato",true) ==0 || strcmp(cmd,"/re",true)==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, COLOR_RED, "[Fail] Vocк foi mutado por um admin, nгo pode falar.");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
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, COLOR_GRAD2, "USO: /relato [texto]");
return 1;
}
if(ReduceTime[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк precisa esperar 3 segundos para usar esse comando denovo !");
return 1;
if(PlayerInfo[playerid][pVIP] == 1) //Se nгo for pVIP trocar pela variбvel que define o vip
{
SendClientMessage(playerid, COLOR_YELLOW, "[BSL] Relatуrio prata enviado para os administradores.");
format(string, sizeof(string), "[Relato] prata %s(%d) relatou: %s", sendername,playerid, (result));
ABroadCast(COLOR_KICKBAN,string,1);
format(string, sizeof(string), "[Relato] prata %s(%d) relatou: %s", sendername,playerid, (result));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
ReduceTime[playerid] = 1;
SetTimerEx("ReduceTimer", 3000, false, "i", playerid);
}
else if(PlayerInfo[playerid][pVIP] == 2) //Se nгo for pVIP trocar pela variбvel que define o vip
{
SendClientMessage(playerid, COLOR_YELLOW, "[BSL] Relatуrio ouro enviado para os administradores.");
format(string, sizeof(string), "[Relato] ouro %s(%d) relatou: %s", sendername,playerid, (result));
ABroadCast(COLOR_KICKBAN,string,1);
format(string, sizeof(string), "[Relato] ouro %s(%d) relatou: %s", sendername,playerid, (result));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
ReduceTime[playerid] = 1;
SetTimerEx("ReduceTimer", 3000, false, "i", playerid);
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "[BSL] Relatуrio enviado para os administradores.");
format(string, sizeof(string), "[Relato] %s(%d) relatou: %s", sendername,playerid, (result));
ABroadCast(COLOR_KICKBAN,string,1);
format(string, sizeof(string), "[Relato] %s(%d) relatou: %s", sendername,playerid, (result));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
ReduceTime[playerid] = 1;
SetTimerEx("ReduceTimer", 3000, false, "i", playerid);
}
return 1;
}
Reply
#6

Coloquei as cores ai:

pawn Код:
if(strcmp(cmd,"/relato",true) ==0 || strcmp(cmd,"/re",true)==0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pMuted] == 1)
            {
                SendClientMessage(playerid, COLOR_RED, "[Fail] Vocк foi mutado por um admin, nгo pode falar.");
                return 1;
            }
            GetPlayerName(playerid, sendername, sizeof(sendername));
            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, COLOR_GRAD2, "USO: /relato [texto]");
                return 1;
            }
            if(ReduceTime[playerid] == 1)
            {
                SendClientMessage(playerid, COLOR_GREY, " Vocк precisa esperar 3 segundos para usar esse comando denovo !");
                return 1;
            }
            if(PlayerInfo[playerid][pDonateRank] == 1)
            {
                SendClientMessage(playerid, COLOR_YELLOW, "[BSL] Relatуrio enviado para os administradores.");
                format(string, sizeof(string), "Vip Bronze %s(%d) relatou: %s", sendername,playerid, (result));
                ABroadCast(0xAD4E0FFF,string,1);
                format(string, sizeof(string), "Vip Bronze %s(%d) relatou: %s", sendername,playerid, (result));
                SendClientMessage(playerid, 0xAD4E0FFF, string);
                ReduceTime[playerid] = 1;
                SetTimerEx("ReduceTimer", 3000, false, "i", playerid);
                return 1;
            }
            else if(PlayerInfo[playerid][pVip] == 2)
            {
                SendClientMessage(playerid, COLOR_YELLOW, "[BSL] Relatуrio enviado para os administradores.");
                format(string, sizeof(string), "Vip Prata %s(%d) relatou: %s", sendername,playerid, (result));
                ABroadCast(0x9B9B9BFF,string,1);
                format(string, sizeof(string), "Vip Prata %s(%d) relatou: %s", sendername,playerid, (result));
                SendClientMessage(playerid, 0x9B9B9BFF, string);
                ReduceTime[playerid] = 1;
                SetTimerEx("ReduceTimer", 3000, false, "i", playerid);
                return 1;
            }
            else if(PlayerInfo[playerid][pVip] == 3)
            {
                SendClientMessage(playerid, COLOR_YELLOW, "[BSL] Relatуrio enviado para os administradores.");
                format(string, sizeof(string), "Vip Ouro %s(%d) relatou: %s", sendername,playerid, (result));
                ABroadCast(0xF2D91DFF,string,1);
                format(string, sizeof(string), "Vip Ouro %s(%d) relatou: %s", sendername,playerid, (result));
                SendClientMessage(playerid, 0xF2D91DFF, string);
                ReduceTime[playerid] = 1;
                SetTimerEx("ReduceTimer", 3000, false, "i", playerid);
                return 1;
            }
            SendClientMessage(playerid, COLOR_YELLOW, "[BSL] Relatуrio enviado para os administradores.");
            format(string, sizeof(string), "[Relato] %s(%d) relatou: %s", sendername,playerid, (result));
            ABroadCast(COLOR_KICKBAN,string,1);
            format(string, sizeof(string), "[Relato] %s(%d) relatou: %s", sendername,playerid, (result));
            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
            ReduceTime[playerid] = 1;
            SetTimerEx("ReduceTimer", 3000, false, "i", playerid);
            return 1;
    }
Reply
#7

pessoal uso o gm bsl

eu vou la substitiuo o meu pelo o de vcs e da esse erro

C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(3115) : error 004: function "FixHour" is not implemented
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(5434) : error 004: function "FixHour" is not implemented
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6037) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(603 : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6039) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6055) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6056) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6057) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6073) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6074) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6075) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6103) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6115) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6130) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6142) : error 004: function "PlayerToPoint" is not implemented
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6786) : error 017: undefined symbol "GetName"
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6790) : error 017: undefined symbol "GetName"
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6794) : error 004: function "ProxDetector" is not implemented
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6806) : error 017: undefined symbol "GetName"
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6810) : error 004: function "ProxDetector" is not implemented
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6830) : error 004: function "ProxDetector" is not implemented
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6846) : error 004: function "ProxDetector" is not implemented
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6866) : error 004: function "ProxDetector" is not implemented
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6882) : error 004: function "ProxDetector" is not implemented
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6903) : error 004: function "ProxDetector" is not implemented
C:\Users\Marlon\Desktop\Expiriongames\gamemodes\BS L.pwn(6919) : error 004: function "ProxDetector" is not implemented

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Reply
#8

acho que esse aqui e o meu sistema de vip

Quote:

ew drank[20];
if(PlayerInfo[targetid][pDonateRank] == 1) { drank = "Vipinho"; }
else if(PlayerInfo[targetid][pDonateRank] == 2){ drank = "Vip Master"; }
else if(PlayerInfo[targetid][pDonateRank] == 3){ drank = "Vip Socio"; }
else { drank = "Nгo"; }
new ptime = PlayerInfo[targetid][pConnectTime];
new bigfish = PlayerInfo[targetid][pBiggestFish];
new arrests = PlayerInfo[targetid][pArrested];
new mats = PlayerInfo[targetid][pMats];
new drugs = PlayerInfo[targetid][pDrugs];
new mortes = PlayerInfo[targetid][pDeaths];
new matadas = PlayerInfo[targetid][pKills];
new level = PlayerInfo[targetid][pLevel];
new exp = PlayerInfo[targetid][pExp];
new pnumber = PlayerInfo[targetid][pPnumber];
new account = PlayerInfo[targetid][pAccount];
new nxtlevel = PlayerInfo[targetid][pLevel]+1;
new expamount = nxtlevel*levelexp;
new chavecasa = PlayerInfo[targetid][pPhousekey];
new chaveempresa = PlayerInfo[targetid][pPbiskey];
new Float:health;
new name[MAX_PLAYER_NAME];
GetPlayerName(targetid, name, sizeof(name));
GetPlayerHealth(targetid,health);
new Floatx,Floaty,Floatz;
GetPlayerPos(targetid, px, py, pz);
new coordsstring[256];

Reply
#9

Como vocк pode reparar nos erros, nгo tem nada a ver com o cуdigo, isso tб me parecendo erro de chave, confira se as chaves do cуdigo estгo certas.
Reply
#10

Acho que agora vai:

pawn Код:
if(strcmp(cmd,"/relato",true) ==0 || strcmp(cmd,"/re",true)==0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pMuted] == 1)
            {
                SendClientMessage(playerid, COLOR_RED, "[Fail] Vocк foi mutado por um admin, nгo pode falar.");
                return 1;
            }
            GetPlayerName(playerid, sendername, sizeof(sendername));
            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, COLOR_GRAD2, "USO: /relato [texto]");
                return 1;
            }
            if(ReduceTime[playerid] == 1)
            {
                SendClientMessage(playerid, COLOR_GREY, " Vocк precisa esperar 3 segundos para usar esse comando denovo !");
                return 1;
            }
            if(PlayerInfo[playerid][pDonateRank] == 1)
            {
                SendClientMessage(playerid, COLOR_YELLOW, "[BSL] Relatуrio enviado para os administradores.");
                format(string, sizeof(string), "Vip Bronze %s(%d) relatou: %s", sendername,playerid, (result));
                ABroadCast(0xAD4E0FFF,string,1);
                format(string, sizeof(string), "Vip Bronze %s(%d) relatou: %s", sendername,playerid, (result));
                SendClientMessage(playerid, 0xAD4E0FFF, string);
                ReduceTime[playerid] = 1;
                SetTimerEx("ReduceTimer", 3000, false, "i", playerid);
                return 1;
            }
            else if(PlayerInfo[playerid][pVip] == 2)
            {
                SendClientMessage(playerid, COLOR_YELLOW, "[BSL] Relatуrio enviado para os administradores.");
                format(string, sizeof(string), "Vip Prata %s(%d) relatou: %s", sendername,playerid, (result));
                ABroadCast(0x9B9B9BFF,string,1);
                format(string, sizeof(string), "Vip Prata %s(%d) relatou: %s", sendername,playerid, (result));
                SendClientMessage(playerid, 0x9B9B9BFF, string);
                ReduceTime[playerid] = 1;
                SetTimerEx("ReduceTimer", 3000, false, "i", playerid);
                return 1;
            }
            else if(PlayerInfo[playerid][pVip] == 3)
            {
                SendClientMessage(playerid, COLOR_YELLOW, "[BSL] Relatуrio enviado para os administradores.");
                format(string, sizeof(string), "Vip Ouro %s(%d) relatou: %s", sendername,playerid, (result));
                ABroadCast(0xF2D91DFF,string,1);
                format(string, sizeof(string), "Vip Ouro %s(%d) relatou: %s", sendername,playerid, (result));
                SendClientMessage(playerid, 0xF2D91DFF, string);
                ReduceTime[playerid] = 1;
                SetTimerEx("ReduceTimer", 3000, false, "i", playerid);
                return 1;
            }
            SendClientMessage(playerid, COLOR_YELLOW, "[BSL] Relatуrio enviado para os administradores.");
            format(string, sizeof(string), "[Relato] %s(%d) relatou: %s", sendername,playerid, (result));
            ABroadCast(COLOR_KICKBAN,string,1);
            format(string, sizeof(string), "[Relato] %s(%d) relatou: %s", sendername,playerid, (result));
            SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
            ReduceTime[playerid] = 1;
            SetTimerEx("ReduceTimer", 3000, false, "i", playerid);
            return 1;
    }
    }
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)