[Release] Report System

Started by Mohamed Boubekri, Jan 29, 2018, 09:17 PM

Previous topic - Next topic

=RK=MarineForce

How i can add this

[RK]MarineForce Banned from server reason hacking By Admin MarineForcWE $@

umar4911

Quote from: Mohamed on Feb 06, 2018, 07:26 PM
Quote from: =RK=MarineForce on Feb 06, 2018, 03:35 PMuntested
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
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);
}
}
}
}
}
RT Member | Asian City Scripter | CTB Contributor | VKs Contributor | European City Contributor | EAD Scripter


[KM]Helathien

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 Boubekri

Quote from: Helathien on Apr 12, 2018, 10:44 AMThanks! 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
| What now ? | Not yet ! |
Morrocan:- [ 🇲🇦 ].

NicusorN5

Heh nice didnt know squireill had a function that returns the date nice script lol.

=RK=MarineForce

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 ..

NicusorN5

Quote from: =RK=MarineForce on Apr 26, 2018, 06:15 PMbro 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?