1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
| #include <sourcemod> #include <sdktools>
public OnPluginStart() { AddCommandListener(Fuck_YOU, "go_away_from_keyboard"); AddCommandListener(Fuck_YOU, "sm_away"); }
public Action:Fuck_YOU(int Client, const char[] sCommand, int iArg) { if (Fuck(Client)) { if(GetClientTeam(Client) == 2) { PrintToChat(Client, "\x03你被控了,不可以闲置"); return Plugin_Stop; } } return Plugin_Continue; }
bool Fuck(Client) { if(GetEntPropEnt(Client, Prop_Send, "m_pummelAttacker") > 0) return true; if(GetEntPropEnt(Client, Prop_Send, "m_carryAttacker") > 0) return true; if(GetEntPropEnt(Client, Prop_Send, "m_pounceAttacker") > 0) return true; if(GetEntPropEnt(Client, Prop_Send, "m_jockeyAttacker") > 0) return true; if(GetEntPropEnt(Client, Prop_Send, "m_tongueOwner") > 0) return true; return false; }
|