=RK=MarineForce

  • Sr. Member
  • why noise ??? Re 100%
  • Posts: 264
[Release] Re: Report System
« Reply #15,  »
How i can add this

[RK]MarineForce Banned from server reason hacking By Admin MarineForcWE [email protected]

umar4911

  • Sr. Member
  • Creating own server!
  • Posts: 295
[Release] Re: Report System
« Reply #16,  »
Quote from Mohamed on February 6th, 07:26 PM
Quote from =RK=MarineForce on February 6th, 03:35 PM
untested
else if ( cmd == "report" )
{
if(!text) MessagePlayer("/report <Player> <Reason>",player);
//Here if You Like Make if player Not Registered
//Here if You Like Make if player Not Logged in
else {
local plr = GetPlayer( GetTok( text, " ", 1 ) );
if ( !plr ) MessagePlayer( "Unknow Player.", player );
{
local reason = GetTok( text, " ", 2 NumTok( text, " " ) );
if ( !reason ) MessagePlayer( "Make Reason.", player );
else if ( plr.Name==player.Name ) MessagePlayer( "You Can't Report yourself.", player );
else {
local now = date();
QuerySQL( rp, "INSERT INTO report ( Plr, Name, Reason, Day, Month, Year, Hour, Min ) VALUES ( '" + plr.Name + "', '" + player.Name + "', '" + reason + "', '" + now.day + "/', '" + now.month + "/', '" + now.year + "/', '" + now.hour + ":', '" + now.min + "' )" );
MessagePlayer("Report Successfully Inserted To DataBase",player);
if ( status[ plr.ID ].Level > 2 )
MessagePlayer("Player "+player.Name+" Has Report " +plr.Name+ " Reason: "+reason+" ", plr);
}
}
}
}
Thi its not warning system.
Player also can do it. ;D
For that you this code
Code: [Select]
else if ( cmd == "report" )
{
if(!text) MessagePlayer("/report <Player> <Reason>",player);
//Here if You Like Make if player Not Registered
//Here if You Like Make if player Not Logged in
else {
local plr = GetPlayer( GetTok( text, " ", 1 ) );
if ( !plr ) MessagePlayer( "Unknow Player.", player );
{
local reason = GetTok( text, " ", 2 NumTok( text, " " ) );
if ( !reason ) MessagePlayer( "Make Reason.", player );
else if ( plr.Name==player.Name ) MessagePlayer( "You Can't Report yourself.", player );
else {
local now = date();
QuerySQL( rp, "INSERT INTO report ( Plr, Name, Reason, Day, Month, Year, Hour, Min ) VALUES ( '" + plr.Name + "', '" + player.Name + "', '" + reason + "', '" + now.day + "/', '" + now.month + "/', '" + now.year + "/', '" + now.hour + ":', '" + now.min + "' )" );
MessagePlayer("Report Successfully Inserted To DataBase",player);
if ( status[ plr.ID ].Level > 2 )
MessagePlayer("You have reported player: "+plr.Name, player);
for(local i=0;i<=GetMaxPlayers();i++)
{
local plar = FindPlayer(i);
if(i && status[plar.ID].Level > 2) MessagePlayer("Player "+player.Name+" Has Report " +plr.Name+ " Reason: "+reason+" ", plar);
}
}
}
}
}
I am gamer, programmer and hacker. Try to find me!
xD

=RK=MarineForce

  • Sr. Member
  • why noise ??? Re 100%
  • Posts: 264

[KM]Helathien

  • Newbie
  • Posts: 14
[Release] Re: Report System
« Reply #18,  »
Thanks! For the Data(); thing :D. Its gonna help me alot :D. Great.
Btw Suggestion: Also add command for admins /checkreports or /reports! :D
Feel free to PM me for any help.
If I am not available on the forum come to VKs Official Server I am usually there.

Mohamed

  • Full Member
  • Regards, We3da
  • Posts: 237
[Release] Re: Report System
« Reply #19,  »
Quote from Helathien on April 12th, 11:44 AM
Thanks! For the Data(); thing :D. Its gonna help me alot :D. Great.
Btw Suggestion: Also add command for admins /checkreports or /reports! :D
Not Data(), its date();
Anyway Thank u ;D
Feel Free To PM Me For Any Support, I'm Care.
Anyway u can Contact Me Ingame!
Ingame Name: [AFt]We3da^
My Own Server: ViceEvil Server

Athanatos

  • Hero Member
  • Failure is not an option.
  • Posts: 501
[Release] Re: Report System
« Reply #20,  »
Heh nice didnt know squireill had a function that returns the date nice script lol.

=RK=MarineForce

  • Sr. Member
  • why noise ??? Re 100%
  • Posts: 264
[Release] Re: Report System
« Reply #21,  »
bro reportlist not working

ii m typing /reportlist not showing any happens

Bro can u do this? when admins join the srever show the report ..

Athanatos

  • Hero Member
  • Failure is not an option.
  • Posts: 501
[Release] Re: Report System
« Reply #22,  »
Quote from =RK=MarineForce on April 26th, 07:15 PM
bro reportlist not working

ii m typing /reportlist not showing any happens

Bro can u do this? when admins join the srever show the report ..
Can't you just stop copy-pasting all the scripts over here?