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("core.phrases");
|
||||
|
||||
AddTempEntHook("Player Decal", HookDecal);
|
||||
|
||||
HookEvent("round_end", Event_RoundEnd);
|
||||
HookEvent("player_death", Event_PlayerDeath);
|
||||
//AddCommandListener(HookPlayerChat, "say");
|
||||
@ -653,17 +651,18 @@ public Action ManualPingMenu(int client, int args)
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
// 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(impulse == 201) //Player spray
|
||||
{
|
||||
RemovePing3();
|
||||
pingEntity3 = SpawnPing(client, 0);
|
||||
pingActive[3] = true;
|
||||
PrintToChat(client, "[SM] 'Star' Ping (re)placed.");
|
||||
}
|
||||
}
|
||||
|
||||
return Plugin_Continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user