Raised This Month: $51 Target: $400
 12% 

[CS:GO] Warden with magic marker


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
chalr
Senior Member
Join Date: Feb 2016
Location: Turkey
Old 08-06-2016 , 13:50   [CS:GO] Warden with magic marker
Reply With Quote #1

Can anyone make a plugin magic marker https://forums.alliedmods.net/showthread.php?p=1749220
that works with warden https://forums.alliedmods.net/showthread.php?p=1476638
i mean you write !w and then you can use magic marker

Last edited by chalr; 08-06-2016 at 13:51.
chalr is offline
weeeishy
Senior Member
Join Date: Jul 2015
Location: Kuwait
Old 08-06-2016 , 15:02   Re: [CS:GO] Warden with magic marker
Reply With Quote #2

Did you even bother to search my friend?

https://github.com/shanapu/MyJailbreak
__________________
weeeishy is offline
chalr
Senior Member
Join Date: Feb 2016
Location: Turkey
Old 08-11-2016 , 03:10   Re: [CS:GO] Warden with magic marker
Reply With Quote #3

Quote:
Originally Posted by weeeishy View Post
Did you even bother to search my friend?

https://github.com/shanapu/MyJailbreak
What is the name of that plugin ? should i install all of them ? actually i don't want others
chalr is offline
chalr
Senior Member
Join Date: Feb 2016
Location: Turkey
Old 09-11-2016 , 14:36   Re: [CS:GO] Warden with magic marker
Reply With Quote #4

Guys I want a magic marker plugin that works with "only" warden plugin

Is there a plugin like this ? if there is not can anyone make it ?
chalr is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 09-11-2016 , 14:39   Re: [CS:GO] Warden with magic marker
Reply With Quote #5

Quote:
Originally Posted by chalr View Post
Guys I want a magic marker plugin that works with "only" warden plugin

Is there a plugin like this ? if there is not can anyone make it ?
usage of warden plugin as standalone without any required plugins coming with next update, my friend.

edit: coming with one of the next updates
__________________
coding & free software

Last edited by shanapu; 09-11-2016 at 18:54.
shanapu is offline
chalr
Senior Member
Join Date: Feb 2016
Location: Turkey
Old 09-11-2016 , 14:39   Re: [CS:GO] Warden with magic marker
Reply With Quote #6

Quote:
Originally Posted by shanapu View Post
usage of warden plugin as standalone without any required plugins coming with next update, my friend.
you said that you are not going to support me
chalr is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 09-11-2016 , 14:52   Re: [CS:GO] Warden with magic marker
Reply With Quote #7

this info wasn't exclusivity for you. I think there are also other people search for this topic.
Btw with a bit searching you could find two different marker plugins for eccas warden.
__________________
coding & free software
shanapu is offline
hu3br
Senior Member
Join Date: Apr 2015
Old 09-11-2016 , 15:52   Re: [CS:GO] Warden with magic marker
Reply With Quote #8

PHP Code:
#pragma semicolon 1

#define PLUGIN_VERSION "1.2"

#include <sourcemod>
#include <sdktools>
#include <csgocolors>
#include <warden>

int g_MarkerColor[] = {25,255,25,255};

ConVar g_cvEnabled;
bool g_bEnabled;

public 
Plugin myinfo 
{
    
name "Warden: Simple Markers",
    
author ".#Zipcore",
    
description "warden place mark",
    
version PLUGIN_VERSION,
    
url "www.thedgeclan.com"
};

float g_fMakerPos[3];

int g_iBeamSprite = -1;
int g_iHaloSprite = -1;

public 
void OnPluginStart()
{
    
CreateConVar("warden_simplemarkers_version"PLUGIN_VERSION"Warden Simple Markers version"FCVAR_DONTRECORD|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);
    
    
g_cvEnabled CreateConVar("warden_simplemarkers_enable""1""Set 0 to disable this plugin.");
    
g_bEnabled GetConVarBool(g_cvEnabled);
    
HookConVarChange(g_cvEnabledAction_OnSettingsChange);
    
    
RegConsoleCmd("sm_marcar"Marcar);
    
    
CreateTimer(1.0Timer_DrawMakers_TIMER_REPEAT);
}

public 
void OnMapStart()
{
    
ResetMarker();
    
    if (
GetEngineVersion() == Engine_CSS)
    {
        
g_iBeamSprite PrecacheModel("materials/sprites/laser.vmt");
        
g_iHaloSprite PrecacheModel("materials/sprites/halo01.vmt");
    }
    else if (
GetEngineVersion() == Engine_CSGO)
    {
        
g_iBeamSprite PrecacheModel("materials/sprites/laserbeam.vmt");
        
g_iHaloSprite PrecacheModel("materials/sprites/glow01.vmt");
    }
}

public 
void Action_OnSettingsChange(Handle cvar, const char[] oldvalue, const char[] newvalue)
{
    if (
cvar == g_cvEnabled)
    {
        
g_bEnabled view_as<bool>(StringToInt(newvalue));
    }
}

public 
Action Marcar(int clientint argc)
{
    if(!
g_bEnabled)
        return 
Plugin_Continue;
    
    if(!
client || !IsClientInGame(client) || !IsPlayerAlive(client))
    {
        
PrintToChat(client"\x04[SM]\x01 Voce precisa estar vivo para usar este comando.");
        return 
Plugin_Continue;
    }
    if(!
warden_iswarden(client))
    {
        
PrintToChat(client"\x04[SM]\x01 Voce precisa ser o \x04xerife\x01 para usar este comando.");
        return 
Plugin_Continue;
    }
    
    
GetClientAimTargetPos(clientg_fMakerPos);
    
g_fMakerPos[2] += 5.0;
    
PrintToChat(client"\x04[SM]\x01 Voce marcou este local.");
        
    return 
Plugin_Continue;
}

public 
void warden_OnWardenCreated(int client)
{
    
ResetMarker();
}

public 
void warden_OnWardenRemoved(int client)
{
    
ResetMarker();
}

int GetClientAimTargetPos(int clientfloat pos[3]) 
{
    if (!
client
        return -
1;
    
    
float vAngles[3]; float vOrigin[3];
    
    
GetClientEyePosition(client,vOrigin);
    
GetClientEyeAngles(clientvAngles);
    
    
Handle trace TR_TraceRayFilterEx(vOriginvAnglesMASK_SHOTRayType_InfiniteTraceFilterAllEntitiesclient);
    
    
TR_GetEndPosition(postrace);
    
pos[2] += 5.0;
    
    
int entity TR_GetEntityIndex(trace);
    
    
CloseHandle(trace);
    
    return 
entity;
}

void ResetMarker()
{
    for(
int i 03i++)
        
g_fMakerPos[i] = 0.0;
}

public 
bool TraceFilterAllEntities(int entityint contentsMaskany client)
{
    if (
entity == client)
        return 
false;
    if (
entity MaxClients)
        return 
false;
    if(!
IsClientInGame(entity))
        return 
false;
    if(!
IsPlayerAlive(entity))
        return 
false;
    
    return 
true;
}

public 
Action Timer_DrawMakers(Handle timerany data)
{
    
Draw_Markers();
    return 
Plugin_Continue;
}

void Draw_Markers()
{
    if(!
g_cvEnabled)
        return;
    
    if (
g_fMakerPos[0] == 0.0)
        return;
    
    if(!
warden_exist())
        return;
        
    
// Show the ring
    
    
TE_SetupBeamRingPoint(g_fMakerPos155.0155.0+0.1g_iBeamSpriteg_iHaloSprite0101.06.00.0g_MarkerColor20);
    
TE_SendToAll();
    
    
// Show the arrow
    
    
float fStart[3];
    
AddVectors(fStartg_fMakerPosfStart);
    
fStart[2] += 0.0;
    
    
float fEnd[3];
    
AddVectors(fEndfStartfEnd);
    
fEnd[2] += 200.0;
    
    
TE_SetupBeamPoints(fStartfEndg_iBeamSpriteg_iHaloSprite0101.04.016.010.0g_MarkerColor5);
    
TE_SendToAll();

hu3br is offline
chalr
Senior Member
Join Date: Feb 2016
Location: Turkey
Old 09-11-2016 , 16:09   Re: [CS:GO] Warden with magic marker
Reply With Quote #9

Quote:
Originally Posted by hu3br View Post
PHP Code:
#pragma semicolon 1

#define PLUGIN_VERSION "1.2"

#include <sourcemod>
#include <sdktools>
#include <csgocolors>
#include <warden>

int g_MarkerColor[] = {25,255,25,255};

ConVar g_cvEnabled;
bool g_bEnabled;

public 
Plugin myinfo 
{
    
name "Warden: Simple Markers",
    
author ".#Zipcore",
    
description "warden place mark",
    
version PLUGIN_VERSION,
    
url "www.thedgeclan.com"
};

float g_fMakerPos[3];

int g_iBeamSprite = -1;
int g_iHaloSprite = -1;

public 
void OnPluginStart()
{
    
CreateConVar("warden_simplemarkers_version"PLUGIN_VERSION"Warden Simple Markers version"FCVAR_DONTRECORD|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);
    
    
g_cvEnabled CreateConVar("warden_simplemarkers_enable""1""Set 0 to disable this plugin.");
    
g_bEnabled GetConVarBool(g_cvEnabled);
    
HookConVarChange(g_cvEnabledAction_OnSettingsChange);
    
    
RegConsoleCmd("sm_marcar"Marcar);
    
    
CreateTimer(1.0Timer_DrawMakers_TIMER_REPEAT);
}

public 
void OnMapStart()
{
    
ResetMarker();
    
    if (
GetEngineVersion() == Engine_CSS)
    {
        
g_iBeamSprite PrecacheModel("materials/sprites/laser.vmt");
        
g_iHaloSprite PrecacheModel("materials/sprites/halo01.vmt");
    }
    else if (
GetEngineVersion() == Engine_CSGO)
    {
        
g_iBeamSprite PrecacheModel("materials/sprites/laserbeam.vmt");
        
g_iHaloSprite PrecacheModel("materials/sprites/glow01.vmt");
    }
}

public 
void Action_OnSettingsChange(Handle cvar, const char[] oldvalue, const char[] newvalue)
{
    if (
cvar == g_cvEnabled)
    {
        
g_bEnabled view_as<bool>(StringToInt(newvalue));
    }
}

public 
Action Marcar(int clientint argc)
{
    if(!
g_bEnabled)
        return 
Plugin_Continue;
    
    if(!
client || !IsClientInGame(client) || !IsPlayerAlive(client))
    {
        
PrintToChat(client"\x04[SM]\x01 Voce precisa estar vivo para usar este comando.");
        return 
Plugin_Continue;
    }
    if(!
warden_iswarden(client))
    {
        
PrintToChat(client"\x04[SM]\x01 Voce precisa ser o \x04xerife\x01 para usar este comando.");
        return 
Plugin_Continue;
    }
    
    
GetClientAimTargetPos(clientg_fMakerPos);
    
g_fMakerPos[2] += 5.0;
    
PrintToChat(client"\x04[SM]\x01 Voce marcou este local.");
        
    return 
Plugin_Continue;
}

public 
void warden_OnWardenCreated(int client)
{
    
ResetMarker();
}

public 
void warden_OnWardenRemoved(int client)
{
    
ResetMarker();
}

int GetClientAimTargetPos(int clientfloat pos[3]) 
{
    if (!
client
        return -
1;
    
    
float vAngles[3]; float vOrigin[3];
    
    
GetClientEyePosition(client,vOrigin);
    
GetClientEyeAngles(clientvAngles);
    
    
Handle trace TR_TraceRayFilterEx(vOriginvAnglesMASK_SHOTRayType_InfiniteTraceFilterAllEntitiesclient);
    
    
TR_GetEndPosition(postrace);
    
pos[2] += 5.0;
    
    
int entity TR_GetEntityIndex(trace);
    
    
CloseHandle(trace);
    
    return 
entity;
}

void ResetMarker()
{
    for(
int i 03i++)
        
g_fMakerPos[i] = 0.0;
}

public 
bool TraceFilterAllEntities(int entityint contentsMaskany client)
{
    if (
entity == client)
        return 
false;
    if (
entity MaxClients)
        return 
false;
    if(!
IsClientInGame(entity))
        return 
false;
    if(!
IsPlayerAlive(entity))
        return 
false;
    
    return 
true;
}

public 
Action Timer_DrawMakers(Handle timerany data)
{
    
Draw_Markers();
    return 
Plugin_Continue;
}

void Draw_Markers()
{
    if(!
g_cvEnabled)
        return;
    
    if (
g_fMakerPos[0] == 0.0)
        return;
    
    if(!
warden_exist())
        return;
        
    
// Show the ring
    
    
TE_SetupBeamRingPoint(g_fMakerPos155.0155.0+0.1g_iBeamSpriteg_iHaloSprite0101.06.00.0g_MarkerColor20);
    
TE_SendToAll();
    
    
// Show the arrow
    
    
float fStart[3];
    
AddVectors(fStartg_fMakerPosfStart);
    
fStart[2] += 0.0;
    
    
float fEnd[3];
    
AddVectors(fEndfStartfEnd);
    
fEnd[2] += 200.0;
    
    
TE_SetupBeamPoints(fStartfEndg_iBeamSpriteg_iHaloSprite0101.04.016.010.0g_MarkerColor5);
    
TE_SendToAll();

Thanks but i am looking for "magic marker" not "simple marker"
chalr 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 15:59.


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