// = = = Topo do GM = = = //
new
ContPreso [ MAX_PLAYERS ]
;
new
TempContPreso [ MAX_PLAYERS ]
;
forward xConttPreso ( playerid ) ; public xConttPreso ( playerid )
{
new
xCelulas [ 70 ] ;
format ( xCelulas, sizeof ( xCelulas ), "~w~Preso por:~n~~r~%d Segundos.", ContPreso [ playerid ] ) ;
GameTextForPlayer ( playerid, string, 1500, 3 ) ;
if ( ContPreso [ playerid ] == 0 )
{
KillTimer( TempContPreso [ playerid ] ) ;
}
ContPreso [ playerid ] -- ;
}
TempContPreso [ playerid ] = SetTimerEx ( "xConttPreso", 1000, 1, "i", playerid ) ;
ContPreso [ playerid ] = VariavelDoTempoDePrisao * 60 ;
KillTimer ( TempContPreso) ;
if(strfind(text, "pica", true) != -1 || strfind(text, "fdp", true) != -1 || strfind(text, "f.d.p", true) != -1 || strfind(text, "f.dp", true) != -1 || strfind(text, "f.dp", true) != -1 || strfind(text, "Vtnc", true) != -1 || strfind(text, "Vai toma no cu", true) != -1 || strfind(text, "FDP", true) != -1 || strfind(text, "Adm Noob", true) != -1 || strfind(text, "FDP", true) != -1 || strfind(text, "Server Lixo", true) != -1 || strfind(text, "Filho da puta", true) != -1)
{
new string[256];
new pname[MAX_PLAYER_NAME];
SendClientMessage(playerid,Vermelho,"{0099FF}|Player|{CCCCFF} Vocк foi avisado por chingar");
SendClientMessage(playerid,Vermelho,"{0099FF}|Player|{CCCCFF} Ao receber 5 avisos vocк serб preso por 12 Minutos");
format(string, sizeof(string), "{0099FF}|BLC Admin|{CCCCFF} O Adminstrador [L.M]Guardiao Avisou o jogador %s ( Motivo: Chingamento )(%d/5)" ,PlayerName(playerid),aviso[playerid]);
SendClientMessageToAll(Vermelho, string);
aviso[playerid]+=1;
if(aviso[playerid] >= 5) {
format(string, sizeof(string), "|BLC Admin| O Administrador [L.M]Guardiao Prendeu o jogador %s por 12 minutos ( Motivo: Chingamentos 5/5 )",pname);
SendClientMessageToAll(Amarelo, string);
SetPlayerPos(playerid, 263.8820,77.4002,1001.0391);
SetPlayerInterior(playerid, 6);
SetPlayerHealth(playerid, 99999);
ResetPlayerWeapons(playerid);
format(file2, sizeof(file2), PASTA_CONTAS, pname);
dini_IntSet(file2, "Preso", 1);
//SetTimerEx("SairCadeia", 720000, false, "i", playerid);
TempContPreso [ playerid ] = SetTimerEx ( "xConttPreso", 1000, 1, "i", playerid ) ;
// ContPreso [ playerid ] = SairCadeia * 60 ;
}
}
ContPreso [ playerid ] = SairCadeia * 60 ; |
syntax error in the expression, or invalid function call. |
forward SairCadeia(playerid);
public SairCadeia(playerid) {
new file2[100];
format(file2, sizeof(file2), P_CONTAS, pname);
dini_IntSet(file2, "Preso", 0);
aviso[playerid] = 0;
SpawnPlayer(playerid);
return 1;
}
if ( strfind(text, "pica", true) != -1 || strfind(text, "fdp", true) != -1 || strfind(text, "f.d.p", true) != -1 || strfind(text, "f.dp", true) != -1 || strfind(text, "f.dp", true) != -1 || strfind(text, "Vtnc", true) != -1 || strfind(text, "Vai toma no cu", true) != -1 || strfind(text, "FDP", true) != -1 || strfind(text, "Adm Noob", true) != -1 || strfind(text, "FDP", true) != -1 || strfind(text, "Server Lixo", true) != -1 || strfind(text, "Filho da puta", true) != -1)
{
static
string [ 256 ],
pname [ 24 ]
;
SendClientMessage ( playerid,Vermelho,"{0099FF}|Player|{CCCCFF} Vocк foi avisado por chingar");
SendClientMessage ( playerid,Vermelho,"{0099FF}|Player|{CCCCFF} Ao receber 5 avisos vocк serб preso por 12 Minutos");
format ( string, sizeof ( string ), "{0099FF}|BLC Admin|{CCCCFF} O Adminstrador [L.M]Guardiao Avisou o jogador %s ( Motivo: Chingamento )(%d/5)" ,PlayerName(playerid),aviso[playerid]);
SendClientMessageToAll ( Vermelho, string ) ;
aviso [ playerid ] + = 1 ;
if ( aviso [ playerid ] >= 5 )
{
format ( string, sizeof ( string ), "|BLC Admin| O Administrador [L.M]Guardiao Prendeu o jogador %s por 12 minutos ( Motivo: Chingamentos 5/5 )",pname);
SendClientMessageToAll ( Amarelo, string ) ;
SetPlayerPos ( playerid, 263.8820,77.4002,1001.0391 ) ;
SetPlayerInterior ( playerid, 6 ) ;
SetPlayerHealth ( playerid, 99999 ) ;
ResetPlayerWeapons ( playerid ) ;
format ( file2, sizeof ( file2 ), PASTA_CONTAS, pname ) ;
dini_IntSet ( file2, "Preso", 1 ) ;
TempContPreso [ playerid ] = SetTimerEx ( "xConttPreso", 1000, 1, "i", playerid ) ;
ContPreso [ playerid ] = 720000 ;
}
}
forward xConttPreso ( playerid ) ; public xConttPreso ( playerid )
{
new
xCelulas [ 70 ] ;
format ( xCelulas, sizeof ( xCelulas ), "~w~Preso por:~n~~r~%d Segundos.", ContPreso [ playerid ] ) ;
GameTextForPlayer ( playerid, string, 1500, 3 ) ;
if ( ContPreso [ playerid ] == 0 )
{
KillTimer( TempContPreso [ playerid ] ) ;
}
ContPreso [ playerid ] -- ;
}
forward xConttPreso ( playerid ) ; public xConttPreso ( playerid )
{
new xCelulas[70] ;
new string[128];
format(xCelulas,sizeof(xCelulas), "~w~Preso por:~n~~r~%d Segundos.",ContPreso[ playerid ] ) ;
GameTextForPlayer ( playerid, string, 90000, 3 ) ;
if ( ContPreso [ playerid ] == 0 )
{
KillTimer( TempContPreso [ playerid ] ) ;
}
ContPreso [ playerid ] -- ;
}