Witam mam problem z compilacja pomoże ktoś?
#include <sourcemod>
#include <sdktools>
#include <cstrike>
#include <sdkhooks>
#include <scp>
public Plugin:myinfo =
{
name = "VIP Generator",
author = "mastah7991",
description = "Automatycznie wygenerowany VIP",
version = "1.0",
url = "www.MyGo.pl"
}
public OnPluginStart()
{
HookEvent("player_spawn", Event_PlayerSpawn);
HookEvent("player_death", Event_PlayerDeath);
}
public OnClientPutInServer(client)
{
if(IsValidPlayer(client)&&GetUserFlagBits(client)&(1<<ADMFLAG_CUSTOM1))
{
SDKHook(client, SDKHook_OnTakeDamage, OnTakeDamage);
}
}
public Action:Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
int client = GetClientOfUserId(GetEventInt(event, "attacker"));
if(IsValidPlayer(client)&&GetUserFlagBits(client)&(1<<ADMFLAG_CUSTOM1))
{
SetEntPropFloat(client, Prop_Send, "m_flLaggedMovementValue", 1.1);
}
}
public Action:Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
{
int client = GetClientOfUserId(GetEventInt(event, "attacker"));
if(IsValidPlayer(client)&&GetUserFlagBits(client)&(1<<ADMFLAG_CUSTOM1))
{
SetEntityHealth(client, GetEntProp(client, Prop_Send, "m_iHealth")+3);
if(headshot)
SetEntityHealth(client, GetEntProp(client, Prop_Send, "m_iHealth")+5);
if(GetEntProp(client, Prop_Send, "m_iHealth")>110)
SetEntityHealth(client, 110);
}
}
public Action:OnTakeDamage(client, &attacker, &inflictor, &Float:damage, &damagetype)
{
if(IsValidPlayer(client)&&GetUserFlagBits(client)&(1<<ADMFLAG_CUSTOM1))
{
if(damagetype & DMG_FALL)
{
return Plugin_Handled;
}
}
return Plugin_Continue;
}
public Action:OnChatMessage(&author, Handle:recipients, String:name[], String:message[])
{
Format(name, MAXLENGTH_NAME, "%s", name);
new MaxMessageLength = MAXLENGTH_MESSAGE - strlen(name) - 5;
Format(name, MaxMessageLength, " [VIP]%s",name);
return Plugin_Changed;
}
stock bool IsValidPlayer(client)
{
if(client >= 1 && client <= MaxClients && IsClientConnected(client) && !IsFakeClient(client) && IsClientInGame(client) )
return true;
return false;
}
Taki mam error - vip.sp<46> : error 017 undefined symbol "headshot"
Jak ktoś pomoże to niech powie mi też jak to zrobić żebym czegoś się nauczył ![]()
Użytkownik Doktorek282 edytował ten post 03.01.2016 16:34


Dodatki SourceMod












