| 110 | { |
| 111 | public: |
| 112 | ResultType OnTimer(ITimer *pTimer, void *pData) |
| 113 | { |
| 114 | int userid = (int)(intptr_t)pData; |
| 115 | int client = g_Players.GetClientOfUserId(userid); |
| 116 | if (client) |
| 117 | { |
| 118 | CPlayer *player = g_Players.GetPlayerByIndex(client); |
| 119 | player->Kick("Your name is reserved by SourceMod; set your password to use it."); |
| 120 | } |
| 121 | return Pl_Stop; |
| 122 | } |
| 123 | void OnTimerEnd(ITimer *pTimer, void *pData) |
| 124 | { |
| 125 | } |
nothing calls this directly
no test coverage detected