Thread: [Solved] [TF2] Inverted Speed Boost?
View Single Post
ShadowMarioBR
Member
Join Date: Feb 2018
Old 05-15-2018 , 12:54   Re: [TF2] Inverted Speed Boost?
Reply With Quote #5

Ok, now it keeps giving an error
Quote:
public Plugin:myinfo = {
name = PLUGIN_NAME,
author = PLUGIN_AUTHOR,
description = PLUGIN_DESCRIPTION,
version = PLUGIN_VERSION,
url = PLUGIN_CONTACT
};

new Handle:SpeedDecrease[MAXPLAYERS+1];

public void TF2_OnConditionAdded(client, TFCond:condition)
{
if (condition == TFCond_SpeedBuffAlly && TF2_GetPlayerClass(client)==TFClass_Scout)
{
TF2_RemoveCondition(client, TFCond_SpeedBuffAlly);
TF2Attrib_SetByName(client, "move speed penalty", 0.737);
TF2_AddCondition(client, TFCond_SpeedBuffAlly, 0.01);
SpeedDecrease[client] = CreateTimer(2.0, Timer_SpeedDecrease, client);
}
Error 100 (on line 31): function prototypes do not match
Line 31 is the "CreateTimer" line

Last edited by ShadowMarioBR; 05-15-2018 at 12:54.
ShadowMarioBR is offline