public OnPlayerText(playerid, text[]) { if (VariavelVip[playerid] == 1) { new u[26]; MsgText[128]; GetPlayerName(playerid, u, 24); format(MsgText, sizeof(MsgText), "%s[%d][VIP]: %s", u, playerid, text); } return 0; }
pInfo[p][TipoVIP]
public OnPlayerText(playerid, text[]) { if (pInfo[p][TipoVIP] == 1) //no lugar do 1 adicione o nъmero que influencia o tipo vip { new u[26]; MsgText[128]; GetPlayerName(playerid, u, 24); format(MsgText, sizeof(MsgText), "%s[%d][VIP]: %s", u, playerid, text); } return 0; }
public OnPlayerText(playerid, text[])
{
new pNome[26],Msg_Texto[130],Nome_Vip[15];
GetPlayerName(playerid,pNome,sizeof(pNome));
switch (pInfo[playerid][TipoVip])
{
case 1: Nome_Vip = "[Prata]";
case 2: Nome_Vip = "[Ouro]";
case 3: Nome_Vip = "[Lord]";
case 4: Nome_Vip = "[Master]";
}
format(Msg_Texto,130,"%s{%06x}%s(%d):{FFFAFA} %s",Nome_Vip,GetPlayerColor(playerid)>>>8,pNome,playerid,text);
SendClientMessageToAll(0x00FF00FF,Msg_Texto);
return 0;
}
OnPlayerText pъblico (playerid, texto []) { if (VariavelVip [playerid] == 1) { novo u [26]; MsgText [128]; GetPlayerName (playerid, u, 24); formato (MsgText, sizeof (MsgText), "% s [% d] [VIP]:% s", u, playerid, texto); } return 0; } |
C:\Users\Mz\Desktop\BPL Games\pawno\include\strlib.inc(1288) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\pawno\include\strlib.inc(1349) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\pawno\include\amx_assembly\disasm.inc(230) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\pawno\include\amx_assembly\disasm.inc(234) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\pawno\include\YSI\..\YSI_Data\..\YSI_Coding\y_hooks/impl.inc(319) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\pawno\include\YSI\..\YSI_Data\..\YSI_Coding\y_hooks/impl.inc(415) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(3181) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(7874) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(8053) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(8078) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(8110) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(8819) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(8864) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(9058) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(9205) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(9675) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(9699) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11155) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11179) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11246) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11305) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11351) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11371) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11414) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11453) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11740) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11876) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11958) : error 017: undefined symbol "p"
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11960) : error 017: undefined symbol "MsgText"
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11960) : warning 215: expression has no effect
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11960) : error 001: expected token: ";", but found "]"
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11960) : error 029: invalid expression, assumed zero
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11960) : fatal error 107: too many error messages on one line
pawn Код:
|
C:\Users\Mz\Desktop\BPL Games\pawno\include\strlib.inc(1288) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\pawno\include\strlib.inc(1349) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\pawno\include\amx_assembly\disasm.inc(230) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\pawno\include\amx_assembly\disasm.inc(234) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(3181) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(7874) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(8053) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(8078) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(8110) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(8819) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(8864) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(9058) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(9205) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(9675) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(9699) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11155) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11179) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11246) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11305) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11351) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11371) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11414) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11453) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11740) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11876) : warning 219: local variable "c" shadows a variable at a preceding level
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11977) : error 076: syntax error in the expression, or invalid function call
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11977) : error 072: "sizeof" operator is invalid on "function" symbols
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11978) : error 017: undefined symbol "TipoVip"
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11985) : error 076: syntax error in the expression, or invalid function call
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11986) : warning 202: number of arguments does not match definition
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11960) : warning 204: symbol is assigned a value that is never used: "tmp"
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11960 -- 11990) : error 010: invalid function or declaration
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11960 -- 11992) : error 010: invalid function or declaration
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11960 -- 11996) : error 010: invalid function or declaration
C:\Users\Mz\Desktop\BPL Games\gamemodes\BPL.pwn(11960 -- 11996) : fatal error 107: too many error messages on one line
public OnPlayerText(playerid, text[])
{
// ------------------ //
if(floodChat[playerid] > gettime())
{
if(GetPlayerCargo(playerid) < C_MODERADOR)
{
SendClientMessage(playerid, COLOR_ERRO, "[ x ] Nгo faзa flood / spam no chat!");
return 0;
}
}
if (pInfo[p][TipoVIP] == 1) //no lugar do 1 adicione o nъmero que influencia o tipo vip
{
new u[26]; MsgText[128];
GetPlayerName(playerid, u, 24);
format(MsgText, sizeof(MsgText), "%s[%d][VIP]: %s", u, playerid, text);
}
return 0;
}
// ------------------ //
floodChat[playerid] = gettime() + 2;
TempoAFK[playerid] = 0;
// ------------------ //
if(pInfo[playerid][Logado] == false) return 0;
if(ChatDesativado == 1 && text[0] != '!' && GetPlayerCargo(playerid) < C_MODERADOR)
{
SendClientMessage(playerid, COLOR_ERRO, "[ x ] O chat estб desativado!");
return 0;
}
if(pInfo[playerid][AFK] == true && GetPlayerCargo(playerid) < C_ADMIN)
{
SendClientMessage(playerid, COLOR_AZULCLARO, "[ x ] Vocк nгo pode usar o chat quando estб AFK!");
return 0;
}
if(pInfo[playerid][Calado] == true)
{
SendClientMessage(playerid, COLOR_ERRO, "[ x ] Vocк estб calado e nгo pode falar nada!");
return 0;
}
if(strfind(text, "server1", true) != -1 || strfind(text, "server2", true) != -1 || strfind(text, "server2", true) != -1 || strfind(text, "loskatchorros", true) != -1 || strfind(text, ":7777", true) != -1 || strfind(text, ":6666", true) != -1)
{
if(GetPlayerCargo(playerid) < C_ADMIN)
{
SendClientMessage(playerid, COLOR_BRANCO, "[ > ] Vocк foi kickado(a) por suspeita de divulgaзгo de IP!");
return Kick(playerid), 0;
}
}
if(strfind(text, "www", true) != -1 || strfind(text, "w w w", true) != -1 || strfind(text, ".com", true) != -1 || strfind(text, ".net", true) != -1 || strfind(text, ".br", true) != -1 || strfind(text, ".blogspot", true) != -1)
{
if(GetPlayerCargo(playerid) < C_ADMIN)
{
SendClientMessage(playerid, COLOR_BRANCO, "[ > ] Vocк foi kickado(a) por suspeita de divulgaзгo de um site!");
return Kick(playerid), 0;
}
}
if(pInfo[playerid][Preso] > 1 && text[0] != ';' && GetPlayerCargo(playerid) < C_ADMIN)
{
SendClientMessage(playerid, COLOR_ERRO, "[ x ] Vocк sу pode usar o chat dos presidiбrios! Ex: ; [ Mensagem ]");
return 0;
}
// ------------------ //
new tmp[128];
if(M0d0Ch4v050 == true)
{
Loop(t, strlen(text))
{
if(text[t] == 'i' || text[t] == 'I') text[t] = '1';
if(text[t] == 'e' || text[t] == 'E') text[t] = '3';
if(text[t] == 'a' || text[t] == 'A') text[t] = '4';
if(text[t] == 's' || text[t] == 'S') text[t] = '5';
if(text[t] == 'g' || text[t] == 'G') text[t] = '6';
if(text[t] == 't' || text[t] == 'T') text[t] = '7';
if(text[t] == 'o' || text[t] == 'O') text[t] = '0';
}
}
if(ModoShower == true)
{
Loop(t, strlen(text))
{
text[0] = toupper(text[0]);
if(text[t] == ' ' || text[t] == '!' || text[t] == ';' || text[t] == '*' || text[t] == '@' || text[t] == '-' || text[t] == '$' || text[t] == '[' || text[t] == '#' || text[t] == '+' || text[t] == '&' || text[t] == '.')
{
text[t + 1] = toupper(text[t + 1]);
}
}
}
PHP код:
|