#1

hi
Can somebody suggest me to do this in the script warn the player and warn kickelje after 3?

Код:
public OnPlayerText(playerid, text[])
    {
       Cenzura("kurva",text);
       Cenzura("kurva anyбd",text,'_');
       Cenzura("kurva anyбtokat",text,'_');
       Cenzura("kurva anyбdat",text,'_');
       Cenzura("anyбd",text);
       Cenzura("anyбdat",text);
       Cenzura("anyбtokat",text);
       Cenzura("buzi",text);
       Cenzura("retkes buzi",text,'_');
       Cenzura("retkes fasz",text,'_');
       Cenzura("KURVA ANYБTOKAT",text,'_');
       Cenzura("KURVA",text);
       Cenzura("bazd meg",text,'_');
       Cenzura("bazdmeg",text);
       Cenzura("kцcsцg",text);
       Cenzura("faszopу",text);
       Cenzura("BUZI",text);
       Cenzura("ribanc",text);
       Cenzura("RIBANC",text);
       Cenzura("KURVA ANYБD",text,'_');
       Cenzura("hьlye",text);
       Cenzura("HЬLYE",text);
       Cenzura("HЬLYE BUZIK",text,'_');
       Cenzura("ANYБD",text);
       Cenzura("ANYБDAT",text);
       Cenzura("ANYБTOKAT",text);
       Cenzura("BUZI",text);
       Cenzura("RETKES BUZI",text,'_');
       Cenzura("RESTKES FASZ",text,'_');
       Cenzura("buzik vagytok",text,'_');
       Cenzura("BUZIK VAGYTOK",text,'_');
       Cenzura("faszom",text);
       Cenzura("FASZOM",text);
       Cenzura("geci",text);
       Cenzura("GECI",text);
       Cenzura("b@zd",text);
       Cenzura("csira",text);
       Cenzura("geci",text);
       Cenzura("csнra",text);
       Cenzura("GECI",text);
       Cenzura("nбci",text);
       Cenzura("zsidу",text);
       Cenzura("NБCI",text);
       Cenzura("tajparaszt",text);
       Cenzura("szikfaszъ",text);
       Cenzura("nбci",text);
       Cenzura("vagina",text);
       Cenzura("vibrбtor",text);
       Cenzura("ZSIDУ",text);
       Cenzura("rohadj",text);
       Cenzura("rohadj meg",text);
       Cenzura("rohadjmeg",text);
       Cenzura("mocskos",text);
       Cenzura("retkes",text);
       Cenzura("mocskos retkes",text);
       Cenzura("baszd meg",text);
       Cenzura("cigбny",text);
	   return 1;
    }
Reply
#2

Auto warn?
Reply
#3

CMD:warn( playerid, params[ ] )
{
if(PVar[playerid][pLevel] < 2) //level 2 admin
return SendClientMessage( playerid, -1, "Only admins level 2+ can use this command."

new tempname, temptext[ 128 ];
if ( sscanf( params, "us[128]", tempname, temptext ) )
return SendClientMessage( playerid, -1, "Usage: /warn <PlayerID> [Reason]");

if ( !IsPlayerConnected( tempname ) )
return SendClientMessage( playerid, -1, "Player is not connected.");

SetPVarInt( tempname, "Warnings", GetPVarInt( tempname, "Warnings") + 1 );

new String[ 256 ];
format( String, sizeof( String ), "Admin %s warned player %s for: %s",
playerid,
tempname,
temptext );

SendClientMessageToAll( -1, String );

if( GetPVarInt( tempname, "Warnings" ) == 3 )
{
format( String, sizeof ( String ), "Player %s got autobanned for earning 3 warnings.", pName( tempname ) );
SendClientMessageToAll( -1, String );
SendClientMessage( tempname, -1, "You've been banned for 3 warnings." );
BanEx( tempname, "3 Warnings" );
}
return 1;
}
Reply
#4

[ENG] In ZCMD, you can make it by this.
[HUN] A ZCMD-ben нgy tudod megoldani.
Reply
#5

Quote:
Originally Posted by RolloHD
Посмотреть сообщение
[ENG] In ZCMD, you can make it by this.
[HUN] A ZCMD-ben нgy tudod megoldani.
Congrats! You've just bumped a four years old thread. Pleade avoid bumping old threads.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)