and u get 2 seconds of no colliions with other players
I used same command as NOBLOCK which WORKS,
but mine wont work
can any pro help me out
Code:
/**
* File: War3Source_Unstuck.sp
* Description: Unstuck command for servers.
* Author(s): [Oddity]TeacherCreature
*/
#pragma semicolon 1
#include <sourcemod>
#include "W3SIncs/War3Source_Interface"
#include <sdkhooks>
#include <sdktools>
new g_offsCollisionGroup;
new bool:bStucked[66];
public Plugin:myinfo =
{
name = "War3Source Unstuck Addon",
author = "[Oddity]TeacherCreature",
description = "Unstuck Addon.",
version = "1.0.0.0",
url = "warcraft-source.net"
}
public OnPluginStart()
{
g_offsCollisionGroup = FindSendPropOffs("CBaseEntity", "m_CollisionGroup");
RegConsoleCmd("+stuck", SayStuck);
}
public Action:SayStuck(client, args)
{
if(!bStucked[client])
{
SetEntData(client, g_offsCollisionGroup, 2, 4, true);
CreateTimer(2.0,normal,client);
PrintHintText(client,"2 seconds to unstick yourself");
}
}
public Action:normal(Handle:timer,any:client)
{
SetEntData(client, g_offsCollisionGroup, 5, 4, true);
}
* File: War3Source_Unstuck.sp
* Description: Unstuck command for servers.
* Author(s): [Oddity]TeacherCreature
*/
#pragma semicolon 1
#include <sourcemod>
#include "W3SIncs/War3Source_Interface"
#include <sdkhooks>
#include <sdktools>
new g_offsCollisionGroup;
new bool:bStucked[66];
public Plugin:myinfo =
{
name = "War3Source Unstuck Addon",
author = "[Oddity]TeacherCreature",
description = "Unstuck Addon.",
version = "1.0.0.0",
url = "warcraft-source.net"
}
public OnPluginStart()
{
g_offsCollisionGroup = FindSendPropOffs("CBaseEntity", "m_CollisionGroup");
RegConsoleCmd("+stuck", SayStuck);
}
public Action:SayStuck(client, args)
{
if(!bStucked[client])
{
SetEntData(client, g_offsCollisionGroup, 2, 4, true);
CreateTimer(2.0,normal,client);
PrintHintText(client,"2 seconds to unstick yourself");
}
}
public Action:normal(Handle:timer,any:client)
{
SetEntData(client, g_offsCollisionGroup, 5, 4, true);
}




Logged



DarkEnergy