AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help plugin compile notd plugin (https://forums.alliedmods.net/showthread.php?t=217508)

svpure 06-03-2013 14:55

help plugin compile notd plugin
 
hello

where is problem for compil plugins

/**
* ====================
* Zombie Riot
* File: smoker.inc
* Author: [NotD] l0calh0st
* www.notdelite.com
* ====================
*/

#include <sourcemod>
#include <sdktools>

new Handle:repeatTimer;

new maxPlayers;
new g_sprite;


public OnPluginStart()
{
repeatTimer = CreateTimer(0.5, DotInfo, _, TIMER_REPEAT);
maxPlayers = GetMaxClients();

}

public OnMapStart()
{
g_sprite = PrecacheModel("materials/sprites/laser.vmt");
colorD[0] = 5;
colorD[1] = 245;
colorD[2] = 5;
colorD[3] = 245;
}

public OnPluginEnd()
{
if (repeatTimer != INVALID_HANDLE)
KillTimer(repeatTimer);
repeatTimer = INVALID_HANDLE;
}

public Action:DotInfo(Handle:timer)
{
new String:model[75];
for (new client = 1; client < maxPlayers; client++)
{
if (!IsValidEdict(client))
continue;

if (IsFakeClient(client) && IsClientInGame(client))
{

GetClientModel(client, model, sizeof(model))
if (StrEqual(model, SMOKERMODEL))
{
new target;
target = GetClientAimTarget(client, true);

SetEntPropFloat(client, Prop_Data, "m_flLaggedMovementValue", 1.0);
//Send player info!
if (target > 0)
{
new Float:clientVec[3];
new Float:targetVec[3];
GetClientAbsOrigin(client, clientVec);
GetClientAbsOrigin(target, targetVec);

if (GetVectorDistance(clientVec, targetVec) < 1000)
{
clientVec[2] += 10;
targetVec[2] += 10;
new Float:clientEyeVec[3];
new Float:targetWepVec[3];
SDKCall(hGetEyePosition, client, clientEyeVec);
SDKCall(hGetEyePosition, target, targetWepVec);
TE_SetupBeamPoints(clientEyeVec, targetWepVec, g_sprite, 0, 0, 0, 0.5, 3.0, 3.0, 10, 0.0, colorD, 0);
TE_SendToAll();

new Float:eyeVec[3];
new Float:speedVec[3];
GetClientEyeAngles(client, eyeVec);
GetAngleVectors(eyeVec, speedVec, NULL_VECTOR, NULL_VECTOR);
speedVec[0]*=-500;
speedVec[1]*=-500;
speedVec[2]*=550;
SetEntPropFloat(client, Prop_Data, "m_flLaggedMovementValue", 0.0);
TeleportEntity(target, NULL_VECTOR, NULL_VECTOR, speedVec);
}
}
continue;
}
}
}
}

TheDS1337 06-03-2013 15:07

Re: help plugin compile notd plugin
 
this is a SourceMod plugin not AMXModX plugin

svpure 06-03-2013 15:11

Re: help plugin compile notd plugin
 
yes sorry error forum


All times are GMT -4. The time now is 16:25.

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