Leader2: Change to PlayerCmd: impulse201
This commit is contained in:
parent
0a9323996a
commit
d99b93d29e
@ -63,8 +63,6 @@ public void OnPluginStart()
|
|||||||
LoadTranslations("common.phrases");
|
LoadTranslations("common.phrases");
|
||||||
LoadTranslations("core.phrases");
|
LoadTranslations("core.phrases");
|
||||||
|
|
||||||
AddTempEntHook("Player Decal", HookDecal);
|
|
||||||
|
|
||||||
HookEvent("round_end", Event_RoundEnd);
|
HookEvent("round_end", Event_RoundEnd);
|
||||||
HookEvent("player_death", Event_PlayerDeath);
|
HookEvent("player_death", Event_PlayerDeath);
|
||||||
//AddCommandListener(HookPlayerChat, "say");
|
//AddCommandListener(HookPlayerChat, "say");
|
||||||
@ -653,17 +651,18 @@ public Action ManualPingMenu(int client, int args)
|
|||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
// Purpose:
|
// Purpose:
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
public Action HookDecal(const char[] sTEName, const int[] iClients, int iNumClients, float fSendDelay)
|
public Action OnPlayerRunCmd(int client, int& buttons, int& impulse, float vel[3], float angles[3], int& weapon, int& subtype, int& cmdnum, int& tickcount, int& seed, int mouse[2])
|
||||||
{
|
{
|
||||||
int client = TE_ReadNum("m_nPlayer");
|
|
||||||
|
|
||||||
if(client == leaderClient)
|
if(client == leaderClient)
|
||||||
|
{
|
||||||
|
if(impulse == 201) //Player spray
|
||||||
{
|
{
|
||||||
RemovePing3();
|
RemovePing3();
|
||||||
pingEntity3 = SpawnPing(client, 0);
|
pingEntity3 = SpawnPing(client, 0);
|
||||||
pingActive[3] = true;
|
pingActive[3] = true;
|
||||||
PrintToChat(client, "[SM] 'Star' Ping (re)placed.");
|
PrintToChat(client, "[SM] 'Star' Ping (re)placed.");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return Plugin_Continue;
|
return Plugin_Continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user