Raised This Month: $32 Target: $400
 8% 

Realistic script idea or a waste of time?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jonaslissner
Junior Member
Join Date: Jun 2014
Old 11-19-2019 , 08:48   Realistic script idea or a waste of time?
Reply With Quote #1

So, I got this idea for a script where a player can report another player, I then want the GOTV to automatically spectate The Susbject in 1st person for 5 or so minutes, while recording a csgo demo for evidence to review. Lastly I want the GOTV to dumb all data in a specific forum, ready for mods to review...

I'm pretty new at SourcePawn and not familiar with it's boundries at all.... I've only coded some really basic scripts and done a fair ammount of reading...

I've already invested a good ammount of time in this project, and just now realized the size of this task, for a newbie like me

My idea for the script? Is it even possible or am I wasting my time??



This is 90% of the progress I've made:
Code:
#include <sourcemod>
#include <sdktools>

#pragma semicolon 1
#pragma newdecls required

public Plugin myinfo = 
{
	name = "JML Report",
	author = "Denaegte",
	description = 	"Allows players to !report other players, hopefully teach them a lesson? make them reconsider life? 
					Probably not, but at least I managed to their unbearable presence + negative and destructive behaviour for a while... 
					After a player gets reported, the CSGO TV bot automatically starts to spectacte The Suspect in 1st person,
					until a 5 minute demo has been captured as evidence. Lastly the information are sent to an Admin Forum - ready for review.",
	version = "0.3",
	url = "jml.lissner.me"
};

public void OnPluginStart()
{
	RegConsoleCmd("sm_report", player_report);
	RegConsoleCmd("sm_rapport", player_rapport);
}

public Action player_report(int client, int args){
	if(args <= 0){
		new String:clientName[50]
        new playerCount = 0
        new index = 1
    
        playerCount = GetClientCount(true)
    
        new Handle:playerMenu = CreateMenu(Handle_PlayerSelect)
        SetMenuTitle("%T","Select a Player to Report: ", playerReport )
    
        while (index <= playerCount)
            {
                if(IsClientConnected(index) && IsClientInGame(index))
                    {
                    MenuAction_Display: { SetMenuTitle("%T", "Begrundelse", playerMenu')
                        GetClientName(index, clientName, sizeof(clientName))
                        AddMenuItem(playerMenu, clientName, clientName)
                    }
                
                    ++index
            }
            
            DisplayMenu(playerMenu, client, true)
            
            return Plugin_Handled;}
		}
	}
}
jonaslissner is offline
xtance
Junior Member
Join Date: Feb 2018
Old 11-19-2019 , 10:23   Re: Realistic script idea or a waste of time?
Reply With Quote #2

It's possible. Also demos from GOTV can be viewed from anyone's point of view so you can basically use this plugin so users can start a demo using /record
https://forums.alliedmods.net/showthread.php?t=92072
Then you inform admins about that demo using this https://forums.alliedmods.net/showthread.php?t=292663
Also you can make demos downloadable from the server by linking demos directory to /var/www/html/ so that user can download them directly (google for "ln -s").
xtance is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode