public ConVarHook(Handle:convar, const String:oldValue[], const String:newValue[]) { if (convar == zr_zclass) { GetConVarString(zr_zclass, zclass, sizeof(zclass)); } else if (convar == zr_zreloadtime) { GetConVarString(zr_zreloadtime, zreloadtime, sizeof(zreloadtime)); } else if (convar == zr_zusetime) { GetConVarString(zr_zusetime, zusetime, sizeof(zusetime)); } else if (convar == zr_zDuration) { zDuration = GetConVarFloat(zr_zDuration); } else if (convar == zr_zAlpha) { zAlpha = GetConVarFloat(zr_zAlpha); } else if (convar == zr_zDistance) { zDistance = GetConVarInt(zr_zDistance); } }
public Action:OnPlayerRunCmd(client, &buttons, &impulse, Float:vel[3], Float:angles[3], &weapon) { if (buttons & IN_ATTACK2 && StockClassCheck(client)) { StockCheckTimer(client); } }
stock StockCheckTimer(client) { if (j_timer[client] == INVALID_HANDLE) { // new Float:time_one = StringToFloat(zusetime); new Float:time_two = StringToFloat(zreloadtime); // new Float:coords[3]; new Float:coords_i[3]; new Float:dis;
GetClientAbsOrigin(client, coords);
for (new i = 1; i <= MaxClients; i++) { if (IsClientInGame(i)) { if (IsPlayerAlive(i) && ZR_IsClientHuman(i)) { GetClientAbsOrigin(i, coords_i);
public Action:ResetFlash(Handle:timer, any:client) { for (new i = 1; i <= MaxClients; i++) { if (IsClientInGame(i)) { if (IsPlayerAlive(i)) { if(flash_[i]) { SetEntPropFloat(i, Prop_Send, "m_flFlashDuration", 0.0); SetEntPropFloat(i, Prop_Send, "m_flFlashMaxAlpha", 0.0); flash_[i] = false; } } } } }
public Action:FlashOn(Handle:timer, any:client) { if (IsClientInGame(client)) { if (j_timer[client] != INVALID_HANDLE) { PrintToChat(client, "\x04[ZombieJerk]\x03Ослепление снова доступно");