mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-08 01:03:20 +00:00
Internal refactor
This commit is contained in:
parent
88b7ac09fc
commit
23cbb7aeac
11 changed files with 967 additions and 697 deletions
|
@ -1,10 +1,7 @@
|
|||
|
||||
Action Timer_ThrowTimer(Handle timer, int client) {
|
||||
if(!IsClientInGame(client)) {
|
||||
Trolls[t_throwItAllIndex].timerHandles[client] = null;
|
||||
return Plugin_Stop;
|
||||
}
|
||||
ThrowAllItems(client);
|
||||
if(IsClientInGame(client))
|
||||
ThrowAllItems(client);
|
||||
return Plugin_Continue;
|
||||
}
|
||||
int instantCommonRef[MAXPLAYERS+1];
|
||||
|
@ -481,4 +478,11 @@ Action Timer_RestoreHud(Handle h, int userid) {
|
|||
SetEntProp(client, Prop_Send, "m_iHideHUD", 0);
|
||||
}
|
||||
return Plugin_Handled;
|
||||
}
|
||||
Action Timer_RandomRewind(Handle h, int client) {
|
||||
if(IsClientInGame(client) && GetURandomFloat() > 0.3) {
|
||||
RewindPlayer(client);
|
||||
}
|
||||
return Plugin_Handled;
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue